forked from fightforthefuture/votebot-forms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 685 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 685 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
# base image
FROM python:2.7-alpine3.6
# set working directory
RUN mkdir -p /app
WORKDIR /app
# add a compiler
RUN apk add --no-cache --virtual .pynacl_deps build-base python2-dev libffi-dev linux-headers postgresql-dev bash curl
# add the code
ADD . /app
# add the env vars
ENV FLASK_APP=app/wsgi.py \
EASYPOST_API_KEY= \
LOB_API_KEY= \
AWS_ACCESS_KEY= \
AWS_SECRET_KEY= \
SENTRY_DSN= \
SMARTY_STREETS_AUTH_ID= \
SMARTY_STREETS_AUTH_TOKEN=
# expose the port
EXPOSE 5000:5000
# install requirements
#RUN pip install -r /app/requirements/development.txt
RUN pip install -r /app/requirements/heroku.txt
# start the server
CMD flask run --host 0.0.0.0