FROM node:20-alpine WORKDIR /app # ENV PNPM_HOME="/pnpm" # ENV PATH="$PNPM_HOME:$PATH" RUN corepack enable RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev libc6-compat git nasm bash gcompat COPY ./packages/strapi/pnpm-lock.yaml ./packages/strapi/package.json ./ RUN pnpm install COPY ./packages/strapi . ENV NODE_ENV=production RUN pnpm run build RUN chown -R node:node /app USER node EXPOSE 5555 ENTRYPOINT ["pnpm"] CMD ["run", "start"]