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

Commit

Permalink
fix(docker): dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Oct 10, 2023
1 parent fa37963 commit e6aa32f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG NODE_VERSION=16-alpine3.18@sha256:a1f9d027912b58a7c75be7716c97cfbc6d3099f3a9

# Install dependencies only when needed
FROM node:$NODE_VERSION AS builder
RUN apk add --no-cache libc6-compat=1.2.4-r1
RUN apk add --no-cache libc6-compat=1.2.4-r2
WORKDIR /app

COPY yarn.lock .yarnrc.yml ./
Expand All @@ -22,10 +22,10 @@ WORKDIR /app

RUN yarn postinstall # if you have postinstall script in your package.json
RUN if [ -z "$PRODUCTION" ]; then \
echo "Overriding .env for staging"; \
cp .env.staging .env.production; \
fi && \
yarn build:export
echo "Overriding .env for staging"; \
cp .env.staging .env.production; \
fi && \
yarn build:export

RUN yarn fetch-tools production && yarn cache clean

Expand Down

0 comments on commit e6aa32f

Please sign in to comment.