mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-13 10:51:03 +00:00
c758858392
Migrated settings to typed pydantic settings
21 lines
551 B
Docker
21 lines
551 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
|
|
|
|
RUN TAKAHE_DATABASE_URL="postgres://dummy:dummy@localhost/postgres" python3 manage.py collectstatic
|
|
|
|
EXPOSE 8000
|
|
|
|
# Set some sensible defaults
|
|
ENV GUNICORN_CMD_ARGS="--workers 8"
|
|
|
|
CMD ["gunicorn", "takahe.wsgi:application", "-b", "0.0.0.0:8000"]
|