ium_478841/Dockerfile
2022-04-03 21:04:03 +02:00

25 lines
538 B
Docker

# Inherit from some existing image
FROM ubuntu:latest
# Create the /app directory
WORKDIR /app
# Install required dependencies
COPY ./requirements.txt .
RUN apt-get update && \
apt-get install -y python3.8 python3-pip figlet unzip
RUN pip3 install -r requirements.txt
ARG KAGGLE_USERNAME
ARG KAGGLE_KEY
# Copy scripts to the catalog
COPY ./scripts/. /
# COPY ./kaggle.json /root/.kaggle/kaggle.json
# Run the copied script
RUN chmod +x /load_data.sh
RUN /load_data.sh
RUN chmod +x /grab_avocado.py
RUN python3 /grab_avocado.py