Updated .dockerignore and Dockerfile

dependabot/npm_and_yarn/typescript-eslint/parser-4.33.0
guusvanmeerveld 3 years ago
parent a1bcf3818d
commit af8edf0992

@ -0,0 +1,9 @@
**
!next-i18next.config.js
!next.config.js
!tsconfig.json
!package.json
!yarn.lock
!public
!src

@ -21,6 +21,7 @@ RUN addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001
COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/next-i18next.config.js ./
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules

@ -5,8 +5,3 @@ services:
container_name: portfolio
build: .
env_file: .env
networks:
default:
external:
name: nginx
Loading…
Cancel
Save