2024-03-29 14:48:13 +01:00
|
|
|
# Base image
|
|
|
|
FROM ubuntu:latest
|
|
|
|
|
|
|
|
# Install python and pip
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
python3 \
|
|
|
|
python3-pip
|
|
|
|
|
2024-04-03 19:57:37 +02:00
|
|
|
# Copy the requirements.txt file to the working directory
|
|
|
|
COPY requirements.txt ./
|
|
|
|
|
|
|
|
# Install the required Python packages form requirements.txt
|
|
|
|
RUN pip3 install -r requirements.txt
|
2024-03-29 14:48:13 +01:00
|
|
|
|
|
|
|
# Set the working directory
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Copy scripts to the working directory
|
2024-04-03 19:57:37 +02:00
|
|
|
|
|
|
|
# Python scripts
|
2024-03-29 14:48:13 +01:00
|
|
|
COPY download_dataset.py ./
|
|
|
|
COPY get_stats.py ./
|
2024-04-19 11:40:54 +02:00
|
|
|
COPY NeuralNetwork.py ./
|
2024-04-04 09:06:39 +02:00
|
|
|
COPY create_model.py ./
|
|
|
|
COPY predict.py ./
|
2024-03-29 14:48:13 +01:00
|
|
|
|
2024-04-03 19:57:37 +02:00
|
|
|
# Bash scripts
|
|
|
|
COPY download_dataset.sh ./
|
|
|
|
COPY get_stats.sh ./
|
|
|
|
|
2024-03-29 14:48:13 +01:00
|
|
|
# Default command
|
|
|
|
CMD bash
|