diff --git a/Dockerfile.image b/Dockerfile.image index 8c68f17cc..ee00597b9 100644 --- a/Dockerfile.image +++ b/Dockerfile.image @@ -1,16 +1,14 @@ # Base Node image -FROM node:20-bookworm-slim AS base +FROM node:20-alpine3.19 AS base # Set for base and all layer that inherit from it ENV PORT="8080" ENV NODE_ENV="production" -ARG DEBIAN_FRONTEND="noninteractive" WORKDIR /src # Install openssl for Prisma -RUN apt-get update && \ - apt-get install -y openssl && \ - rm -rf /var/lib/apt/lists/* +RUN apk add --no-cache openssl && \ + rm -rf /var/cache/apk/* # Install all node_modules, including dev dependencies FROM base AS deps