2022-11-18 16:24:43 -08:00
|
|
|
FROM python:3.11.0-slim-buster
|
2022-11-08 20:05:51 -08:00
|
|
|
|
2022-11-18 16:24:43 -08:00
|
|
|
RUN apt-get update && apt-get -y install libpq-dev python3-dev build-essential
|
2022-11-08 20:05:51 -08:00
|
|
|
|
|
|
|
COPY requirements.txt requirements.txt
|
|
|
|
|
2022-11-18 16:24:43 -08:00
|
|
|
RUN pip3 install --upgrade pip \
|
|
|
|
&& pip3 install --upgrade -r requirements.txt
|
2022-11-08 20:05:51 -08:00
|
|
|
|
|
|
|
COPY . /takahe
|
|
|
|
|
|
|
|
WORKDIR /takahe
|
2022-11-18 16:24:43 -08:00
|
|
|
|
|
|
|
# We use development here to skip settings checks
|
|
|
|
RUN DJANGO_SETTINGS_MODULE=takahe.settings.development python3 manage.py collectstatic
|
|
|
|
|
2022-11-08 20:05:51 -08:00
|
|
|
EXPOSE 8000
|
|
|
|
|
2022-11-18 16:24:43 -08:00
|
|
|
CMD ["sh", "/takahe/docker/start.sh"]
|