forked from anno-mods/anno-117-calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (14 loc) · 725 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (14 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM nginx:stable-alpine
WORKDIR /usr/share/nginx/html
# Clean default nginx content
RUN rm -rf ./*
# Copy repository into image
COPY . /usr/share/nginx/html
# Remove files/folders you requested not to include in the image
RUN rm -f /usr/share/nginx/html/package.json /usr/share/nginx/html/Dockerfile && \
rm -rf /usr/share/nginx/html/.github /usr/share/nginx/html/.gitattributes /usr/share/nginx/html/.gitignore /usr/share/nginx/html/.git /usr/share/nginx/html/.claude /usr/share/nginx/html/.cursor /usr/share/nginx/html/logs /usr/share/nginx/html/tests
# Optional: set safe permissions for nginx
RUN chown -R nginx:nginx /usr/share/nginx/html || true
EXPOSE 80
STOPSIGNAL SIGTERM
CMD ["nginx", "-g", "daemon off;"]