ium_z487174/Dockerfile
2023-06-30 00:04:42 +02:00

23 lines
580 B
Docker

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