diff --git a/.dockerignore b/.dockerignore index f7007e4..7fdcc44 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,4 +2,7 @@ .env.* .git node_modules -*.log \ No newline at end of file +*.log +admin/storage +admin/node_modules +admin/build \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ade661f..739d9e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM node:22.16.0-alpine3.22 AS base +FROM node:22-slim AS base # Install bash & curl for entrypoint script compatibility, graphicsmagick for pdf2pic, and vips-dev & build-base for sharp -RUN apk add --no-cache bash curl graphicsmagick vips-dev build-base +RUN apt-get update && apt-get install -y bash curl graphicsmagick libvips-dev build-essential # All deps stage FROM base AS deps