-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 763 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM nginx:alpine
# Install Python 3 and VC verification dependencies via apk
RUN apk add --no-cache \
python3 \
py3-pip \
py3-requests \
py3-cryptography
# Clean default assets
RUN rm -rf /usr/share/nginx/html/*
# Copy static files
COPY ./index.html /usr/share/nginx/html/index.html
COPY ./styles.css /usr/share/nginx/html/styles.css
COPY ./main.js /usr/share/nginx/html/main.js
COPY ./olares-dog.webp /usr/share/nginx/html/olares-dog.webp
# Copy VC verification script
COPY ./verify_vc.py /verify_vc.py
RUN chmod +x /verify_vc.py
# Copy entrypoint script
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Expose port
EXPOSE 80
# Use entrypoint script that verifies VC before starting nginx
ENTRYPOINT ["/entrypoint.sh"]