Initial commit
This commit is contained in:
commit
a206bfb5db
21 files changed
+16747
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# d3 and topojson are copied into the image so the page does not need a CDN at runtime
|
||||
# (checksums pinned to the files downloaded when this project was set up).
|
||||
ADD --checksum=sha256:f2094bbf6141b359722c4fe454eb6c4b0f0e42cc10cc7af921fc158fceb86539 https://cdnjs.cloudflare.com/ajax/libs/d3/7.9.0/d3.min.js static/vendor/d3.min.js
|
||||
ADD --checksum=sha256:b47a003c6a0d761211dbc60797d0d62f37917ddc228241fb38205732b1d78683 https://cdnjs.cloudflare.com/ajax/libs/topojson/3.0.2/topojson.min.js static/vendor/topojson.min.js
|
||||
RUN chmod 644 static/vendor/*.js
|
||||
|
||||
COPY app/ /app/
|
||||
|
||||
ENV DATA_DIR=/data \
|
||||
PORT=8080 \
|
||||
UPDATE_MODE=auto \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["python", "server.py"]
|
||||
Reference in new issue
Block a user