-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
36 lines (24 loc) · 1023 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
33
34
35
36
FROM python:3.8
# -------- Set up environment and variables --------
# Tell the bootstrapper that we're working from Docker
ENV IS_DOCKER=1
# CONFIGURATION should eventually support any of <file, database, url, redis>
# At the moment, only ["file"] is supported
ENV CONFIGURATION=file
# CONFIG_LOCATION defaults to config_temp.yml, you can change it like so:
# ENV CONFIG_LOCATION=config.yml
# The Gunicorn port defaults to 8000
EXPOSE 8000
# You can specify an alternate Gunicorn port with
# ENV SERVER_PORT=5000
# You can run the server in development mode with
# ENV DEVELOPMENT=1
# -------- Configure application --------
# Clone the augur_view source and set the new folder as the working directory
RUN git clone -b dev https://github.com/augurlabs/augur_view.git app
WORKDIR /app
# Since we specified CONFIGURATION=file above, we provide it here
# If a file is not provided, first-time setup will run on each startup
# COPY config.yml ./
RUN pip install -r requirements.txt
CMD ["python", "bootstrap.py"]