From ae4c3318abdca3f214ba1ecddd999054322116e4 Mon Sep 17 00:00:00 2001 From: perillamint Date: Thu, 16 May 2024 00:57:44 +0900 Subject: [PATCH] Initial docker build setup --- .dockerignore | 3 +++ Dockerfile | 12 ++++++++++++ 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..19e42b8 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +Dockerfile +.git +.dockerignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b720a72 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM docker.io/python:3.11-bookworm + +RUN apt-get update && apt-get install -y libgl1 && rm -rf /var/lib/apt/lists/* + +RUN mkdir -p /opt/minya +WORKDIR /opt/minya + +ADD . /opt/minya + +RUN python3 -m pip install -r requirements.txt + +CMD ["python3", "minya.py"]