mirror of
https://github.com/Rhinemann/IoT-Systems.git
synced 2026-03-14 20:50:39 +02:00
12 lines
442 B
Docker
12 lines
442 B
Docker
# Use the official Python image as the base image
|
|
FROM python:3.9-slim
|
|
# Set the working directory inside the container
|
|
WORKDIR /app
|
|
# Copy the requirements.txt file and install dependencies
|
|
COPY hub/requirements.txt .
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
# Copy the entire application into the container
|
|
COPY hub/. .
|
|
# Run the main.py script inside the container when it starts
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0"] |