2025-03-29 08:28:13 +00:00
|
|
|
# Use an official Python image as a base
|
2025-04-04 08:27:46 +01:00
|
|
|
FROM python:3.11-slim
|
2025-03-29 08:28:13 +00:00
|
|
|
|
|
|
|
# Set the working directory in the container
|
|
|
|
WORKDIR /app
|
2025-07-10 17:08:58 +01:00
|
|
|
# Set version label
|
2025-07-10 17:12:23 +01:00
|
|
|
ARG VERSION="0.2.14"
|
2025-07-10 17:08:58 +01:00
|
|
|
LABEL version=$VERSION
|
2025-03-29 08:28:13 +00:00
|
|
|
|
|
|
|
# Copy project files into the container
|
|
|
|
COPY . /app
|
2025-07-10 17:08:58 +01:00
|
|
|
|
2025-03-29 08:28:13 +00:00
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
# Expose any necessary ports (optional, if running a web app)
|
|
|
|
EXPOSE 5000
|
|
|
|
|
|
|
|
# Define the command to run the application
|
|
|
|
CMD ["python", "ai_frame_image_server.py"]
|