From 7161bfc190155d9cc568947d64f7b2bc9e5f8fe9 Mon Sep 17 00:00:00 2001 From: makew Date: Sat, 21 Mar 2026 10:43:25 +0200 Subject: [PATCH] =?UTF-8?q?lis=C3=A4tty=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e12bf6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# Use an official Node.js runtime as the base image +FROM node:20-alpine + +# Set the working directory in the container +WORKDIR /app + +# Copy the package.json and package-lock.json files to the container +COPY package.json package-lock.json ./ + +# Install project dependencies +RUN npm install + +# Copy the rest of the project files to the container +COPY . . + +# Build the React app +RUN npm run build + +# Expose the port that the server will listen on +EXPOSE 5173 + +# Start the application +CMD [ "npm", "run", "preview" ] \ No newline at end of file