diff --git a/client/Dockerfile b/client/Dockerfile index 6097cae..6a60006 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -15,13 +15,11 @@ FROM nginx:alpine # Remove the default Nginx configuration file RUN rm /etc/nginx/conf.d/default.conf -RUN mkdir -p /app/attachments && chown -R node:node /app/attachments - # Copy the built files from the builder stage to the Nginx image COPY --from=builder /app/client/dist /usr/share/nginx/html # Expose port 80 EXPOSE 80 -USER node + # Start Nginx in the foreground CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 27dcc06..c6549f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,8 +13,6 @@ services: PG_HOST: db ports: - "3000" - volumes: - - attachments:/app/attachments depends_on: db: condition: service_healthy @@ -59,5 +57,4 @@ networks: driver: bridge volumes: - postgres-data: - attachments: \ No newline at end of file + postgres-data: \ No newline at end of file