Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nzws committed May 15, 2024
1 parent b856dcb commit a16505d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-slim AS builder
FROM node:20-slim AS builder
RUN apt-get update && apt-get install -y ca-certificates gnupg openssl libssl-dev libc6

USER node
Expand All @@ -12,8 +12,11 @@ COPY --chown=node:node ./packages/api-types ./packages/api-types

RUN yarn workspaces focus server api-types && yarn workspace api-types build && yarn workspace server build

FROM node:18-slim
RUN apt-get update && apt-get install -y ca-certificates gnupg openssl libssl-dev libc6
FROM node:20-slim
RUN apt-get update &&\
apt-get install -y ca-certificates gnupg openssl libssl-dev libc6 &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*

USER node
RUN mkdir /home/node/app
Expand Down

0 comments on commit a16505d

Please sign in to comment.