add dockerfile

This commit is contained in:
Karol Cyganik 2024-04-02 23:06:26 +02:00
parent 03070c7f4d
commit 5107ac4825
2 changed files with 17 additions and 1 deletions

17
Dockerfile Normal file
View File

@ -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"]

View File

@ -1,6 +1,5 @@
kaggle==1.6.6 kaggle==1.6.6
matplotlib==3.6.3 matplotlib==3.6.3
Pillow==9.3.0
Pillow==10.2.0 Pillow==10.2.0
scikit_learn==1.2.2 scikit_learn==1.2.2
torch==2.0.0+cu117 torch==2.0.0+cu117