Skip to content

Commit 1637fc0

Browse files
committed
refactor: format RUN commands in Dockerfile for better readability
1 parent 38919d4 commit 1637fc0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

docker/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ FROM node:24-alpine AS build
55
WORKDIR /app
66
COPY . ./
77

8-
RUN npm ci && npm run check && npm run build && npm prune --omit=dev
8+
RUN \
9+
npm ci && \
10+
npm run check && \
11+
npm run build && \
12+
npm prune --omit=dev
913

1014
# ---------- Runtime stage ----------
1115
FROM node:24-alpine
@@ -23,7 +27,9 @@ COPY --from=build /app/packages ./packages
2327
COPY testdata/1_bundeslaender.geojson testdata/3_kreise.geojson ./data/
2428

2529
# kill npm cache + root npm dir in the final stage
26-
RUN npm cache clean --force && rm -rf /root/.npm
30+
RUN \
31+
npm cache clean --force && \
32+
rm -rf /root/.npm
2733

2834
EXPOSE 8080
2935
ENV NODE_ENV=production

0 commit comments

Comments
 (0)