Skip to content

Commit

Permalink
Added docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuldeep-knoldus committed Jun 27, 2024
1 parent 4cc0131 commit c54607c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions blogs-analyzer-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Stage 2: Use a smaller, nginx-based image to serve the app
FROM nginx:alpine

# Copy the built app from the previous stage to the nginx web server directory
COPY --from=build /app/dist/blogs-analyzer-ui /usr/share/nginx/html

# Copy custom nginx configuration
COPY nginx-custom.conf /etc/nginx/conf.d/default.conf

# Expose port 80 to the Docker environment
EXPOSE 80

# Command to run nginx when the container starts
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit c54607c

Please sign in to comment.