This commit is contained in:
Chris Grimmett 2024-04-08 15:52:57 -08:00
parent c657de3056
commit c624239ca0
1 changed files with 8 additions and 8 deletions

View File

@ -1,15 +1,15 @@
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
WORKDIR /app
COPY pnpm-lock.yaml package.json ./
RUN pnpm install
ENV NODE_ENV=production
COPY ./packages/strapi .
RUN chown -R node:node /app
USER node
RUN pnpm run build
ENTRYPOINT ["pnpm"]
CMD ["run", "start"]
# COPY ./packages/strapi .
# RUN pnpm run build
# RUN chown -R node:node /app
# USER node
# ENV NODE_ENV=production
# ENTRYPOINT ["pnpm"]
# CMD ["run", "start"]