-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (21 loc) · 947 Bytes
/
Dockerfile
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
32
# build with
# sudo docker build -t xsplot .
# run with
# sudo docker run --network host -t xsplot
# maintained at https://github.com/openmc-data-storage/xsplot.com/
FROM ghcr.io/openmc-data-storage/nuclear_data_base_docker
# the base image nuclear_data_base_docker is based on continuumio/miniconda3:4.9.2
RUN pip install dash
RUN pip install gunicorn==20.0.4
COPY assets assets
COPY app.py .
ENV PORT 8080
EXPOSE 8080
# Run the web service on container startup. Here we use the gunicorn
# webserver, with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run
# to handle instance scaling. For more details see
# https://cloud.google.com/run/docs/quickstarts/build-and-deploy/python
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 app:server