Skip to content

Commit

Permalink
Fiksar slackbot-dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
madsop-nav committed Feb 23, 2024
1 parent 08c4385 commit 397c39b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/ey-slackbot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ FROM node:20-bookworm-slim as base

WORKDIR /usr/src/app

COPY . ./
COPY src ./src
COPY package.json ./package.json
COPY yarn.lock ./yarn.lock

ENV NODE_ENV="production"
RUN yarn

ENV NODE_ENV="production"

FROM gcr.io/distroless/nodejs20-debian12 as prod
COPY --from=base /usr/src/app /app
Expand All @@ -17,4 +19,4 @@ ENV NODE_ENV="production"
WORKDIR /app
EXPOSE 8080

CMD ["start"]
CMD ["./src/app.js"]

0 comments on commit 397c39b

Please sign in to comment.