Skip to content

Commit

Permalink
package. Update to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyco97 committed Oct 3, 2024
1 parent b534b40 commit 7389d27
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 225 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Install dependencies only when needed
FROM docker.io/library/node:16-alpine AS deps
FROM docker.io/library/node:18.2 AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat git openssh
WORKDIR /app
Expand All @@ -18,7 +18,7 @@ RUN \
fi

# Rebuild the source code only when needed
FROM docker.io/library/node:16-alpine AS builder
FROM docker.io/library/node:18.2 AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
Expand All @@ -34,7 +34,7 @@ ENV NEXT_TELEMETRY_DISABLED 1
RUN npm run build

# Production image, copy all the files and run next
FROM docker.io/library/node:16-alpine AS runner
FROM docker.io/library/node:18.2 AS runner
WORKDIR /app

ENV NODE_ENV production
Expand Down
Loading

0 comments on commit 7389d27

Please sign in to comment.