organize files to use with Docker

This commit is contained in:
w 2024-11-11 23:58:39 +01:00
parent ce0a570d57
commit bec3f6095b
281 changed files with 34 additions and 21 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ __pycache__/
venv/
*.sqlite3
migrations/
data/

21
Dockerfile Normal file
View 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