From 766ac8704a35311bee0f4d8283ce8055b0aea049 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Wed, 17 Jan 2024 17:56:59 +0800 Subject: [PATCH] docker build --- .dockerignore | 2 ++ Dockerfile | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3af6a7b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +__pycache__ +/venv \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8cf085f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.11 + +EXPOSE 7999 + +WORKDIR /app + +COPY ./requirements_version.txt . + +RUN pip install -r requirements_version.txt --no-cache-dir + +COPY . . + +CMD ["python", "main.py"]