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 # Build stage
FROM node:20-alpine AS builder FROM node:20-alpine AS builder
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json ./ COPY package.json yarn.lock ./
RUN npm ci RUN yarn install
COPY . . COPY . .
ENV PORT=5000 ENV PORT=5000
ENV VERCEL_PROJECT_PRODUCTION_URL=http://194.59.214.243: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 ENV NEXT_PUBLIC_API_BASE_URL=http://194.59.214.243:5000/api
RUN npm run build RUN yarn run build
# Production stage # Production stage
FROM node:20-alpine AS runner FROM node:20-alpine AS runner
@@ -25,4 +25,4 @@ COPY --from=builder /app/node_modules ./node_modules
VOLUME ["/app/contactMessages.json"] VOLUME ["/app/contactMessages.json"]
EXPOSE 5000 EXPOSE 5000
CMD ["npm", "start"] CMD ["yarn", "start"]
+3390
View File
File diff suppressed because it is too large Load Diff