tubearchivist-server/tubearchivist/web/Dockerfile

20 lines
438 B
Docker
Raw Normal View History

2022-06-14 03:53:24 +00:00
FROM python:3.10.5-slim-bullseye
2022-04-29 10:48:25 +00:00
RUN apt-get clean && apt-get -y update && \
apt-get -y install --no-install-recommends \
2022-06-06 08:17:31 +00:00
build-essential libpq-dev vim htop bmon net-tools iputils-ping procps
2022-04-29 10:48:25 +00:00
2022-06-01 11:12:16 +00:00
ENV PATH=/root/.local/bin:$PATH
2022-04-29 10:48:25 +00:00
COPY requirements.txt /requirements.txt
2022-06-01 11:12:16 +00:00
RUN pip install --user -r requirements.txt
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"]