Add 'Dockerfile'

This commit is contained in:
Mikołaj Perz 2023-04-20 20:34:04 +02:00
parent 0eab774492
commit e9765fe619

24
Dockerfile Normal file
View File

@ -0,0 +1,24 @@
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 main.py /app/main.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"]