Files
Smartwave/cloud/Dockerfile
T
Ninluc 7a0ad29722
Build, push image, and notify Watchtower / build-image (push) Successful in 1m11s
Build, push image, and notify Watchtower / notify (push) Failing after 2m19s
Fix folders I think
2026-07-16 17:30:54 +02:00

22 lines
618 B
Docker

# Use a lightweight Python 3.11 image
FROM python:3.11-slim
# Set the working directory inside the container
WORKDIR /cloud
# Copy the requirements file and install dependencies
COPY cloud/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY cloud/ .
COPY shared/ ..
# Ensure the photo storage directory exists so the app doesn't crash on startup
RUN mkdir -p storage/dishPhotos
# Expose the port the app will run on
EXPOSE 5000
# Use Gunicorn to run the application in production
CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:5000", "app:app"]