diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..df04c1a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +** + +!next-i18next.config.js +!next.config.js +!tsconfig.json +!package.json +!yarn.lock +!public +!src \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index a269968..a43bc57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index bef2579..73fb4d1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,9 +4,4 @@ services: app: container_name: portfolio build: . - env_file: .env - -networks: - default: - external: - name: nginx \ No newline at end of file + env_file: .env \ No newline at end of file