generated from hack4impact/flask-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (19 loc) · 814 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
FROM python:3.8-alpine
# Packages required for psycopg2
RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev
# Ruby sass
RUN apk add make ruby-dev
RUN gem install sass
#MAINTANER Your Name "youremail@domain.tld"
ENV MAIL_USERNAME=yourmail@test.com
ENV MAIL_PASSWORD=testpass
ENV SECRET_KEY=SuperRandomStringToBeUsedForEncryption
# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip3 install -r requirements.txt
ENV PYTHONIOENCODING=UTF-8
RUN pip3 install sqlalchemy_utils==0.38.3 flask_dance==5.1.0 Flask-Caching==1.11.1 python-gitlab==3.10.0
COPY . /app
#RUN python3 manage.py recreate_db && python3 manage.py setup_dev && python3 manage.py add_fake_data
ENTRYPOINT ["python3", "-u" ,"manage.py", "runserver"]