-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 797 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 797 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
32
33
34
35
36
# pull official base image
FROM python:3.8.3-alpine
# set work directory
WORKDIR /usr/src/app
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# install dependencies
RUN pip3 install --upgrade pip
RUN apk update && apk add python3-dev && apk --no-cache add gcc musl-dev
COPY ./requirements.txt .
RUN pip3 install -r requirements.txt
# copy project
COPY . .
EXPOSE 8000
CMD ["python3", "manage.py", "migrate"]
CMD ["python3", "manage.py", "runserver"]
# ALL ENVIRONMENT VARIABLES
########################################################################################
#
# - TAURUS_PORT
# - ETHEREUM_URL
# - ETHEREUM_PORT
# - ORION_URL
# - ORION_PORT
# - THREADS
########################################################################################