forked from ton-connect/wallets-list
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (19 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
29 lines (19 loc) · 755 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
FROM python:3.11-alpine AS builder
WORKDIR /build
COPY server/nginx.conf /build/nginx.conf
COPY wallets-v2.json /build/wallets-v2.json
COPY wallets.json /build/wallets.json
COPY scripts/proxy_urls.py /build/proxy_urls.py
ARG SERVER_NAME=config.ton.org
RUN python proxy_urls.py \
--input wallets-v2.json \
--output wallets-v2.proxy.json \
--base-url "https://${SERVER_NAME}/assets/"
FROM nginx:alpine
RUN rm /usr/share/nginx/html/*
COPY --from=builder /build/nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /build/wallets-v2.proxy.json /usr/share/nginx/html/wallets-v2.json
COPY --from=builder /build/wallets.json /usr/share/nginx/html/wallets.json
COPY assets/ /usr/share/nginx/html/assets/
EXPOSE 80
CMD nginx -g "daemon off;"