first pass
This commit is contained in:
19
templates/static/nginx/Dockerfile.template
Normal file
19
templates/static/nginx/Dockerfile.template
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copy static files
|
||||
COPY . /usr/share/nginx/html
|
||||
|
||||
# Copy nginx configuration
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Remove Docker-related files from the served directory
|
||||
RUN rm -f /usr/share/nginx/html/Dockerfile \
|
||||
/usr/share/nginx/html/docker-compose.yml \
|
||||
/usr/share/nginx/html/.dockerignore \
|
||||
/usr/share/nginx/html/docker-deployment.json \
|
||||
/usr/share/nginx/html/*.ps1 \
|
||||
/usr/share/nginx/html/README.DOCKER.md 2>/dev/null || true
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user