2022-04-29 10:48:25 +00:00
|
|
|
FROM python:3.10.4-slim-bullseye
|
|
|
|
|
|
|
|
RUN apt-get clean && apt-get -y update && \
|
|
|
|
apt-get -y install --no-install-recommends \
|
|
|
|
python3-dev libpq-dev build-essential \
|
|
|
|
vim htop bmon net-tools iputils-ping procps
|
|
|
|
|
|
|
|
COPY requirements.txt /requirements.txt
|
2022-05-02 10:07:26 +00:00
|
|
|
RUN pip install --upgrade pip setuptools && \
|
|
|
|
pip install --no-cache-dir -r /requirements.txt --src /usr/local/src
|
2022-04-29 10:48:25 +00:00
|
|
|
|
2022-05-20 12:53:04 +00:00
|
|
|
RUN mkdir /data
|
|
|
|
|
2022-04-29 10:48:25 +00:00
|
|
|
COPY . /srv/flask_app
|
|
|
|
WORKDIR /srv/flask_app
|
|
|
|
|
|
|
|
RUN chmod +x ./start.sh
|
|
|
|
|
2022-05-20 12:53:04 +00:00
|
|
|
VOLUME /data
|
2022-04-29 10:48:25 +00:00
|
|
|
CMD ["./start.sh"]
|