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/docker/Dockerfile
2022-11-20 11:45:50 -07:00

23 lines
560 B
Docker

FROM python:3.11.0-slim-buster
RUN apt-get update && apt-get -y install libpq-dev libxml2-dev libxslt1-dev zlib1g-dev python3-dev build-essential
COPY requirements.txt requirements.txt
RUN pip3 install --upgrade pip \
&& pip3 install --upgrade -r requirements.txt
COPY . /takahe
WORKDIR /takahe
# We use development here to skip settings checks
RUN DJANGO_SETTINGS_MODULE=takahe.settings.development python3 manage.py collectstatic
EXPOSE 8000
# Set some sensible defaults
ENV GUNICORN_CMD_ARGS="--workers 8"
CMD ["sh", "/takahe/docker/start.sh"]