Skip to content

Commit

Permalink
ci: add install next step in docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
moolmin committed Sep 24, 2024
1 parent f170ae0 commit 8174b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM --platform=linux/arm64 node:18 AS pre
WORKDIR /app
RUN apt-get update && \
apt-get install -y python3 make g++ build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev && \
apt-get install -y python3 make g++ build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev next && \
apt-get clean

# 1. Install dependencies only when needed
Expand All @@ -23,7 +23,7 @@ RUN echo "NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL" >> .env.production
ARG NEXT_PUBLIC_GA_ID
RUN echo "NEXT_PUBLIC_GA_ID=$NEXT_PUBLIC_GA_ID" >> .env.production

RUN yarn build
RUN yarn run build

# 3. Production image, copy all the files you need to run the app
FROM --platform=linux/arm64 node:18-alpine AS runner
Expand Down

0 comments on commit 8174b9c

Please sign in to comment.