We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae2c500 commit f101434Copy full SHA for f101434
Dockerfile
@@ -1,14 +1,17 @@
1
#syntax=docker/dockerfile:1
2
3
-FROM node:20-bookworm-slim AS base
+FROM node:20-alpine AS base
4
RUN apt-get update -y && apt-get install -y ca-certificates git openssl
5
6
FROM base AS build
7
RUN apt-get update -y && apt-get install -y build-essential python3
8
WORKDIR /app
9
+COPY package.json yarn.lock .yarnrc.yml ./
10
COPY ./.yarn/ .yarn/
11
+RUN --mount=type=cache,id=internal-site-yarn,target=.yarn/cache \
12
+ yarn install --immutable --inline-builds
13
+
14
COPY . /app/
-RUN --mount=type=cache,id=internal-site-yarn,target=.yarn/cache yarn install --immutable --inline-builds --frozen-lockfile
15
16
ENV NODE_ENV=production
17
ARG GIT_REV
0 commit comments