Add 'Dockerfile'
This commit is contained in:
parent
a8b90f7168
commit
845019447d
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@ -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"]
|
Loading…
Reference in New Issue
Block a user