-
-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·17 lines (12 loc) · 650 Bytes
/
Copy pathDockerfile
File metadata and controls
executable file
·17 lines (12 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM nginx:alpine
# Serve the static site from Nginx's default html directory
WORKDIR /usr/share/nginx/html
# Copy repository contents into the container
COPY . .
# Point the client fetch to the local TSV copy bundled in the image
RUN sed -i "s|https://api.github.com/repos/renniepak/CSPBypass/contents/data.tsv?ref=main|data.tsv|g" script.js
RUN sed -i "s|https://api.github.com/repos/renniepak/CSPBypass/contents/credits.txt?ref=main|credits.txt|g" script.js
RUN sed -i "s|https://cspbypass.com/cspbypass.png|cspbypass.png|g" index.html
EXPOSE 80
# Run Nginx in the foreground so the container keeps running
CMD ["nginx", "-g", "daemon off;"]