docker update

This commit is contained in:
2025-06-30 14:31:08 +03:30
parent 864d5c51dc
commit 6c9dd0b731
2 changed files with 3394 additions and 4 deletions
+4 -4
View File
@@ -1,15 +1,15 @@
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
ENV PORT=5000
ENV VERCEL_PROJECT_PRODUCTION_URL=http://194.59.214.243:5000
ENV NEXT_PUBLIC_API_BASE_URL=http://194.59.214.243:5000/api
RUN npm run build
RUN yarn run build
# Production stage
FROM node:20-alpine AS runner
@@ -25,4 +25,4 @@ COPY --from=builder /app/node_modules ./node_modules
VOLUME ["/app/contactMessages.json"]
EXPOSE 5000
CMD ["npm", "start"]
CMD ["yarn", "start"]