You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
428 B
21 lines
428 B
FROM python:3.11-slim
|
|
|
|
# Pillow dependencies
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libjpeg62-turbo-dev zlib1g-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Kopieer volledige app (zoals hij nu is)
|
|
COPY . .
|
|
|
|
# Expose Flask port
|
|
EXPOSE 5000
|
|
|
|
# Gebruik jouw eigen app.py als entrypoint
|
|
CMD ["python", "app.py"]
|