organize files to use with Docker
This commit is contained in:
parent
ce0a570d57
commit
bec3f6095b
281 changed files with 34 additions and 21 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
__pycache__/
|
__pycache__/
|
||||||
venv/
|
venv/
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
migrations/
|
migrations/
|
||||||
|
data/
|
||||||
|
|
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
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"]
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue