diff --git a/.dockerignore b/.dockerignore index de85ecc..a599e8b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,7 @@ README.md node_modules/ .eslintrc.json +.next/ .vercel/ start.sh .husky/ diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index b6bff23..92c6ddf 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -50,6 +50,7 @@ jobs: uses: kitabisa/docker-slim-action@v1 env: DSLIM_HTTP_PROBE: false + DSLIM_INCLUDE_APP_NEXT_DIR: true with: target: ${{ env.BOX_URL }}:latest tag: 'slim' diff --git a/Dockerfile b/Dockerfile index 498039c..148b601 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,4 @@ COPY --from=prod-deps /app/node_modules ./node_modules COPY --from=build /app/public ./public COPY --from=build /app/.next ./.next EXPOSE 3000 -CMD ["npm","run", "start"] \ No newline at end of file +CMD ["npm","start"] \ No newline at end of file