Switch to angular
This commit is contained in:
14
Dockerfile.frontend.simple
Normal file
14
Dockerfile.frontend.simple
Normal file
@@ -0,0 +1,14 @@
|
||||
# Simple approach - build on host and copy dist folder
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copy pre-built Angular app
|
||||
COPY frontend/dist/frontend /usr/share/nginx/html
|
||||
|
||||
# Copy nginx configuration
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
||||
# Start nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user