This commit is contained in:
Witold Woch 2023-05-12 18:41:25 +02:00
parent 5b8896595c
commit c68c84cc42

View File

@ -1,18 +1,20 @@
FROM ubuntu:latest
RUN apt update && apt install -y figlet
RUN apt install unzip -y
RUN apt install python3-pip -y
RUN pip3 install pandas
RUN pip3 install kaggle
RUN pip3 install scikit-learn
RUN pip3 install seaborn
RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
ENV KAGGLE_USERNAME=witeks1833
ENV KAGGLE_KEY=""
FROM python:3.8-slim-buster
WORKDIR /app
COPY ./script ./
CMD ["bash", "script"]
RUN apt-get update && apt-get install -y \
figlet \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
RUN pip install torch pandas numpy scikit-learn kaggle
COPY . /app
COPY ./train.py ./
COPY ./prediction.py ./
COPY ./Sales.csv ./
CMD python train.py