Works on PROD

This commit is contained in:
aodulov
2025-10-15 16:07:56 +03:00
parent 03d31011fd
commit 8cbb520408
7 changed files with 38 additions and 9 deletions

View File

@@ -24,8 +24,14 @@ COPY --from=build /app/build /usr/share/nginx/html
# Copy a custom Nginx configuration if needed (optional)
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy the entrypoint script
COPY entrypoint.sh /entrypoint.sh
# Make the entrypoint script executable
RUN chmod +x /entrypoint.sh
# Expose port 80
EXPOSE 80
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]
# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]