diff --git a/Dockerfile b/Dockerfile index faae44d..e8d26be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim +FROM python:3.11-slim COPY Pipfile* /app/ WORKDIR /app/ diff --git a/frontend/Dockerfile b/frontend/Dockerfile index d2161d2..9c5fbb9 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -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