organize files to use with Docker
This commit is contained in:
parent
ce0a570d57
commit
bec3f6095b
281 changed files with 34 additions and 21 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ __pycache__/
|
|||
venv/
|
||||
*.sqlite3
|
||||
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