diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f17cd43 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,14 @@ +.idea +__pycache__ +.git +.dockerignore +Dockerfile +*.md +db.json +users.json +test.py +update_db.py +logs +*.log +.vscode +uploads/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..702888b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.9.5 +WORKDIR /app +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt +COPY . . +RUN mkdir -p /app/uploads +EXPOSE 3133 + +CMD ["python", "app.py"] \ No newline at end of file