22 lines
373 B
Text
22 lines
373 B
Text
|
FROM python:3.7
|
||
|
|
||
|
RUN apt update && apt install -y locales
|
||
|
|
||
|
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
||
|
|
||
|
ENV LANGUAGE=en_US:en
|
||
|
ENV LANG=en_US.UTF-8
|
||
|
ENV LC_ALL=en_US.UTF-8
|
||
|
|
||
|
WORKDIR src
|
||
|
|
||
|
COPY requirements.txt requirements.txt
|
||
|
|
||
|
RUN pip install -r requirements.txt
|
||
|
|
||
|
COPY app/ app/
|
||
|
|
||
|
WORKDIR /src/app
|
||
|
|
||
|
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|