Skip to content

Commit 08c4385

Browse files
authored
Bruker distroless baseimage også for slackbot. Fint å vera konsekvent på tvers (#207)
1 parent 34d254d commit 08c4385

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

apps/ey-slackbot/Dockerfile

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-bookworm-slim
1+
FROM node:20-bookworm-slim as base
22

33
WORKDIR /usr/src/app
44

@@ -8,6 +8,13 @@ RUN yarn
88

99
ENV NODE_ENV="production"
1010

11+
FROM gcr.io/distroless/nodejs20-debian12 as prod
12+
COPY --from=base /usr/src/app /app
13+
14+
USER nonroot
15+
ENV NODE_ENV="production"
16+
17+
WORKDIR /app
1118
EXPOSE 8080
1219

13-
CMD ["yarn", "start"]
20+
CMD ["start"]

0 commit comments

Comments
 (0)