14 lines
296 B
Docker
14 lines
296 B
Docker
# 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;"] |