⬆️ Updated versions in docker

This commit is contained in:
Mawoka
2023-01-29 12:30:21 +01:00
parent ac28c0f793
commit 3b20721640
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
### Build Step
# pull the Node.js Docker image
FROM node:18.5-bullseye as builder
FROM node:19-bullseye as builder
# ENV API_URL=http://api:80
ENV API_URL=https://mawoka.eu
#Ah, I've noticed that!!!
@@ -22,7 +22,7 @@ COPY package*.json ./
COPY pnpm-lock.yaml ./
# run npm install in our local machine
RUN corepack enable && corepack prepare pnpm@7.5.0 --activate && pnpm i
RUN corepack enable && corepack prepare pnpm@7.26.2 --activate && pnpm i
# copy the generated modules and all other files to the container
COPY . .
@@ -32,13 +32,13 @@ RUN pnpm run build
### Serve Step
# pull the Node.js Docker image
FROM node:18.5-bullseye-slim
FROM node:19-bullseye-slim
# change working directory
WORKDIR /app
COPY --from=builder /usr/src/app/package.json .
COPY --from=builder /usr/src/app/pnpm-lock.yaml .
RUN corepack enable && corepack prepare pnpm@7.5.0 --activate && pnpm i
RUN corepack enable && corepack prepare pnpm@7.26.2 --activate && pnpm i
# copy files from previous step
COPY --from=builder /usr/src/app/build .
COPY --from=builder /usr/src/app/node_modules ./node_modules