Skip to content

Commit f101434

Browse files
committed
Try and cut down on image sizes a bit more
1 parent ae2c500 commit f101434

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
#syntax=docker/dockerfile:1
22

3-
FROM node:20-bookworm-slim AS base
3+
FROM node:20-alpine AS base
44
RUN apt-get update -y && apt-get install -y ca-certificates git openssl
55

66
FROM base AS build
77
RUN apt-get update -y && apt-get install -y build-essential python3
88
WORKDIR /app
9+
COPY package.json yarn.lock .yarnrc.yml ./
910
COPY ./.yarn/ .yarn/
11+
RUN --mount=type=cache,id=internal-site-yarn,target=.yarn/cache \
12+
yarn install --immutable --inline-builds
13+
1014
COPY . /app/
11-
RUN --mount=type=cache,id=internal-site-yarn,target=.yarn/cache yarn install --immutable --inline-builds --frozen-lockfile
1215

1316
ENV NODE_ENV=production
1417
ARG GIT_REV

0 commit comments

Comments
 (0)