2020-02-03 10:50:42 +00:00
|
|
|
FROM python:3-buster
|
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
|
|
|
RUN mkdir /code
|
|
|
|
WORKDIR /code
|
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
apt install -y gettext nginx uwsgi uwsgi-plugin-python3 && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY requirements.txt /code/
|
2020-03-08 21:42:22 +00:00
|
|
|
RUN pip install -r requirements/base.txt
|
|
|
|
RUN pip install -r requirements/api.txt
|
|
|
|
RUN pip install -r requirements/cas.txt
|
|
|
|
RUN pip install -r requirements/production.txt
|
2020-02-03 10:50:42 +00:00
|
|
|
|
|
|
|
COPY . /code/
|
|
|
|
|
|
|
|
ENTRYPOINT ["/code/entrypoint.sh"]
|
|
|
|
EXPOSE 8000
|