docker update
This commit is contained in:
+4
-4
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user