mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
19 lines
458 B
Docker
19 lines
458 B
Docker
FROM python:3.11.0-slim-buster
|
|
|
|
RUN apt-get update && apt-get -y install libpq-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
|
|
|
|
CMD ["sh", "/takahe/docker/start.sh"]
|