Skip to content

Commit 224f000

Browse files
committed
use node alpine for frontend dockerfile this way we're not pulling two
different node images for the frontend and emails build stages
1 parent 0169594 commit 224f000

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

frontend/Dockerfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1.4
2-
FROM --platform=$BUILDPLATFORM docker.io/library/node:22 as build_deps
2+
FROM --platform=$BUILDPLATFORM docker.io/library/node:22-alpine as build_deps
33

44
WORKDIR /app
55
COPY .yarnrc yarn.lock package.json ./
@@ -8,15 +8,15 @@ RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn --p
88

99
COPY --link config ./config/
1010
COPY --link lit-localize.json \
11-
postcss.config.js \
12-
tailwind.config.js \
13-
tsconfig.json \
14-
webpack.config.js \
15-
webpack.prod.js \
16-
.eslintrc.js \
17-
tsconfig.eslint.json \
18-
index.d.ts \
19-
./
11+
postcss.config.js \
12+
tailwind.config.js \
13+
tsconfig.json \
14+
webpack.config.js \
15+
webpack.prod.js \
16+
.eslintrc.js \
17+
tsconfig.eslint.json \
18+
index.d.ts \
19+
./
2020

2121
COPY --link lib ./lib/
2222
COPY --link src ./src/
@@ -29,12 +29,12 @@ ARG GIT_BRANCH_NAME
2929
ARG VERSION
3030

3131
ENV GIT_COMMIT_HASH=${GIT_COMMIT_HASH} \
32-
GIT_BRANCH_NAME=${GIT_BRANCH_NAME} \
33-
VERSION=${VERSION}
32+
GIT_BRANCH_NAME=${GIT_BRANCH_NAME} \
33+
VERSION=${VERSION}
3434

3535
# Prevent Docker image including node_modules to save space
3636
RUN yarn build && \
37-
rm -rf ./node_modules
37+
rm -rf ./node_modules
3838

3939
FROM --platform=$BUILDPLATFORM docker.io/library/python:3.12-slim as build_docs
4040

0 commit comments

Comments
 (0)