diff --git a/.dockerignore b/.dockerignore index 3f8979c..2dcca38 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,8 +2,12 @@ node_modules dist .git .gitignore +.env .env.local .tmp *.log docker-compose*.yml Dockerfile* +strapi-cms +server/uploads +server/data diff --git a/strapi-cms/.dockerignore b/strapi-cms/.dockerignore index 9931a84..0fa129c 100644 --- a/strapi-cms/.dockerignore +++ b/strapi-cms/.dockerignore @@ -1,8 +1,7 @@ node_modules dist .git -.gitignore .tmp -.cache +build +public/uploads *.log -Dockerfile diff --git a/strapi-cms/Dockerfile b/strapi-cms/Dockerfile index a2abb3e..c2e1c70 100644 --- a/strapi-cms/Dockerfile +++ b/strapi-cms/Dockerfile @@ -1,13 +1,10 @@ FROM node:20-alpine -# Install native build tools for packages like better-sqlite3 / pg -RUN apk add --no-cache python3 make g++ gcc libc-dev - WORKDIR /app # Copy package files and install dependencies COPY package*.json ./ -RUN npm install +RUN npm install --omit=dev --legacy-peer-deps || npm install # Copy rest of Strapi CMS source code COPY . .