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