2022-03-28 11:21:44 +02:00
|
|
|
# Inherit from some existing image
|
|
|
|
FROM ubuntu:latest
|
|
|
|
|
|
|
|
# Create the /app directory
|
|
|
|
WORKDIR /app
|
|
|
|
|
2022-04-03 11:34:18 +02:00
|
|
|
# Install required dependencies
|
2022-04-03 20:17:21 +02:00
|
|
|
COPY ./requirements.txt .
|
2022-04-03 11:34:18 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y python3.8 python3-pip figlet unzip
|
2022-04-03 11:46:06 +02:00
|
|
|
RUN pip3 install -r requirements.txt
|
2022-04-03 11:34:18 +02:00
|
|
|
|
|
|
|
ARG KAGGLE_USERNAME
|
|
|
|
ARG KAGGLE_KEY
|
|
|
|
|
2022-03-28 11:21:44 +02:00
|
|
|
# Copy scripts to the catalog
|
2022-04-03 19:39:46 +02:00
|
|
|
COPY ./scripts/. /
|
2022-04-24 13:32:00 +02:00
|
|
|
# * For local (Jenkins) processing
|
|
|
|
# COPY ./kaggle.json /root/.kaggle/kaggle.json
|
2022-03-28 11:21:44 +02:00
|
|
|
|
|
|
|
# Run the copied script
|
2022-04-03 21:04:03 +02:00
|
|
|
RUN chmod +x /load_data.sh
|
|
|
|
RUN /load_data.sh
|
2022-04-03 19:39:46 +02:00
|
|
|
|
2022-04-03 21:04:03 +02:00
|
|
|
RUN chmod +x /grab_avocado.py
|
2022-04-24 13:32:00 +02:00
|
|
|
RUN python3 /grab_avocado.py
|
|
|
|
|
|
|
|
# Run the model and train it
|
2022-05-15 11:09:16 +02:00
|
|
|
# RUN chmod +x /model.py
|
|
|
|
# RUN python3 /model.py
|