From 845019447d238f4e12ef0b3269fe1aa3585c2fd3 Mon Sep 17 00:00:00 2001 From: Tomasz Koszarek Date: Fri, 30 Jun 2023 00:04:42 +0200 Subject: [PATCH] Add 'Dockerfile' --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4dfda0c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM python:3.8-slim + +RUN export KAGGLE_USERNAME=${KAGGLE_USERNAME} +RUN export KAGGLE_KEY=${KAGGLE_KEY} +RUN echo $KAGGLE_KEY + +# Set the working directory to /app +WORKDIR /app + +# Copy the current directory contents into the container at /app +COPY requirements.txt /app/requirements.txt +COPY dataset.py /app/dataset.py + +RUN mkdir results + +# Install any needed packages specified in requirements.txt +RUN pip install --trusted-host pypi.python.org -r requirements.txt + +# Define environment variable +ENV NAME World + +# Run app.py when the container launches +CMD ["python", "dataset.py"] \ No newline at end of file