ium_424714/Dockerfile

23 lines
469 B
Docker

FROM python:3.11
# seting env variables
ENV KAGGLE_USERNAME=filippatyk
ENV KAGGLE_KEY=""
ENV RUN_TYPE=""
# create working direcotyry
WORKDIR /app
ENV KAGGLE_CONFIG_DIR="./"
# install python dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY dataset.py ./
#make dir for data
RUN mkdir -p ./data
CMD kaggle datasets download -p data --unzip clmentbisaillon/fake-and-real-news-dataset && python ./dataset.py "--$RUN_TYPE"