From 5107ac482577f5496304e6ba0e5f0bebe4b07755 Mon Sep 17 00:00:00 2001 From: Karol Cyganik Date: Tue, 2 Apr 2024 23:06:26 +0200 Subject: [PATCH] add dockerfile --- Dockerfile | 17 +++++++++++++++++ requirements.txt | 1 - 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1a3fb8d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM ubuntu:latest + +WORKDIR /app + +COPY . /app + +RUN apt update + +RUN apt install python3 python3-pip -y + +RUN pip3 install --no-cache-dir kaggle==1.6.6 matplotlib==3.6.3 scikit-learn==1.2.2 torch==2.0.0 torchvision==0.15.1 + +RUN pip3 install --no-cache-dir Pillow==10.2.0 + +EXPOSE 80 + +CMD ["python", "your_script_name.py"] diff --git a/requirements.txt b/requirements.txt index 2c54000..1ed36d5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ kaggle==1.6.6 matplotlib==3.6.3 -Pillow==9.3.0 Pillow==10.2.0 scikit_learn==1.2.2 torch==2.0.0+cu117