This repository has been archived on 2023-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
takahe/Dockerfile

27 lines
527 B
Docker
Raw Normal View History

2022-11-09 05:05:51 +01:00
FROM python:3.9-bullseye as builder
RUN mkdir -p /takahe
RUN python -m venv /takahe/.venv
RUN apt-get update && apt-get -y install libpq-dev python3-dev
WORKDIR /takahe
COPY requirements.txt requirements.txt
RUN . /takahe/.venv/bin/activate \
&& pip install --upgrade pip \
&& pip install --upgrade -r requirements.txt
FROM python:3.9-slim-bullseye
RUN apt-get update && apt-get install -y libpq5
COPY --from=builder /takahe /takahe
COPY . /takahe
WORKDIR /takahe
EXPOSE 8000
CMD ["/takahe/scripts/start.sh"]