fp/strapi.dockerfile

15 lines
454 B
Plaintext
Raw Normal View History

2024-04-08 23:48:05 +00:00
FROM node:20-alpine
2024-04-08 23:52:57 +00:00
WORKDIR /app
2024-04-08 23:48:05 +00:00
# ENV PNPM_HOME="/pnpm"
# ENV PATH="$PNPM_HOME:$PATH"
2024-04-02 14:49:33 +00:00
RUN corepack enable
2024-04-08 18:23:31 +00:00
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 pnpm-lock.yaml package.json ./
2024-04-08 23:48:05 +00:00
RUN pnpm install
2024-04-08 23:52:57 +00:00
# COPY ./packages/strapi .
# RUN pnpm run build
# RUN chown -R node:node /app
# USER node
# ENV NODE_ENV=production
# ENTRYPOINT ["pnpm"]
# CMD ["run", "start"]