-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (19 loc) · 916 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
# syntax=docker/dockerfile:1
FROM python:3.10-bullseye
# install system dependencies (I think the PIL python library requires all this qt5 shit)
RUN pip install --upgrade pip setuptools wheel
RUN apt update && apt install -y qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools pyqt5-dev postgresql ffmpeg python3-dev python3-distutils libatlas-base-dev && rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip3 --version
# install python dependencies
COPY requirements.txt requirements.txt
RUN pip3 install --use-pep517 googlemaps
RUN pip3 install -r requirements.txt
# install flask-track-usage AFTER other dependancies have been installed (depends onsphinxcontrib-applehelp)
# RUN pip3 install git+https://github.com/ashcrow/flask-track-usage@baeec4d#egg=Flask-Track-Usage
# copy project files to WORKDIR
COPY . .
# expose port to host
EXPOSE 5000
# run entrypoint.sh to init db
ENTRYPOINT ["/app/entrypoint.sh"]