From 9502a25b84f80f28ec62b69117866f694f4aab3b Mon Sep 17 00:00:00 2001 From: bayanolla Date: Wed, 29 Oct 2025 17:39:41 +0300 Subject: [PATCH] basic loader --- Dockerfile | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a36201..42cf4c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,20 @@ -FROM node:20-alpine AS build +# Use the latest LTS version of Node.js +FROM node:18-alpine + +# Set the working directory inside the container WORKDIR /app + +# Copy package.json and package-lock.json COPY package*.json ./ + +# Install dependencies RUN npm install + +# Copy the rest of your application files COPY . . -RUN npm run build - -FROM nginx:alpine -COPY --from=build /app/build /usr/share/nginx/html -EXPOSE 80 -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file + +# Expose the port your app runs on +EXPOSE 3000 + +# Define the command to run your app +CMD ["npm", "start"] \ No newline at end of file