-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.dev
38 lines (29 loc) · 937 Bytes
/
Dockerfile.dev
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
37
38
FROM python:3.9.6
# WARNING: Do not use this Dockerfile for production installs. It creates a
# temporary database that is stored in the container, which you definitely
# don't want for production.
RUN apt-get update \
&& apt-get install -y \
git \
libcap-dev \
libjansson-dev \
libpcre3-dev \
libsasl2-dev \
libyaml-dev \
optipng \
uuid-dev \
&& pip install --no-cache-dir pip-tools
RUN pip install --no-cache-dir uWSGI==2.0.20
WORKDIR /usr/src/app
# install python dependencies
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /usr/src/app
EXPOSE 5000
ENV PYTHONPATH /usr/src/app
ENV FLASK_APP trackman
ENV USE_EMBEDDED_DB 1
# set permissions
RUN chown www-data:www-data trackman .
ENTRYPOINT ["/usr/src/app/entrypoint-dev.sh"]
CMD ["uwsgi" , "--ini", "uwsgi.ini:dev"]