Skip to content

Commit

Permalink
docker node version updated to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
armin-bkh committed Oct 28, 2023
1 parent c8a89ea commit c199902
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .docker/prod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:16-alpine AS dependencies
FROM node:18-alpine AS dependencies
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json ./
COPY yarn.lock ./
RUN yarn install --frozen-lockfile

FROM node:16-alpine AS builder
FROM node:18-alpine AS builder
WORKDIR /app
COPY --from=dependencies /app/node_modules ./node_modules
COPY . .
Expand All @@ -14,7 +14,7 @@ ARG NODE_ENV
ENV NODE_ENV="production"
RUN yarn build

FROM node:16-alpine AS runner
FROM node:18-alpine AS runner
WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED 1
COPY --from=builder /app/.next/standalone ./standalone
Expand All @@ -23,4 +23,4 @@ COPY --from=builder /app/.next/static ./standalone/.next/static

EXPOSE 8080
ENV PORT 8080
CMD ["node", "./standalone/server.js"]
CMD ["node", "./standalone/server.js"]

0 comments on commit c199902

Please sign in to comment.