Skip to content

Commit

Permalink
build: revert to alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
RaunoT committed Dec 4, 2024
1 parent cbd1c23 commit 4ea94ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM node:22-slim AS base
FROM node:22-alpine AS base

# Install dependencies only when needed
FROM base 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
WORKDIR /app

# Install dependencies based on the preferred package manager
Expand Down Expand Up @@ -35,6 +37,9 @@ RUN \
FROM base AS runner
WORKDIR /app

# Install openssl in the runner stage
RUN apk add --no-cache openssl

ENV NODE_ENV=production
ENV BASE_DIR=/app
ARG NEXT_PUBLIC_VERSION_TAG
Expand Down

0 comments on commit 4ea94ea

Please sign in to comment.