Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibbp committed Jul 28, 2024
1 parent 0840cb4 commit cdd357e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ARG GITHUB_SHA
ENV NEXT_PUBLIC_GIT_COMMIT=$GITHUB_SHA

# Install dependencies only when needed
FROM node:18-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
Expand All @@ -8,6 +11,7 @@ RUN npm install

# Rebuild the source code only when needed
FROM node:18-alpine AS builder

RUN apk add --no-cache git
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
Expand Down

0 comments on commit cdd357e

Please sign in to comment.