ium_464863/Dockerfile
2024-05-22 10:29:45 +02:00

32 lines
648 B
Docker

# Base image
FROM ubuntu:latest
# Install python and pip
RUN apt-get update && apt-get install -y \
python3 \
python3-pip
# 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 --break-system-packages
# Set the working directory
WORKDIR /app
# Copy scripts to the working directory
# Python scripts
COPY download_dataset.py ./
COPY get_stats.py ./
COPY NeuralNetwork.py ./
COPY create_model.py ./
COPY predict.py ./
# Bash scripts
COPY download_dataset.sh ./
COPY get_stats.sh ./
# Default command
CMD bash