senju/Dockerfile
Christoph J. Scherr 96e081fff1
chore: make image recognition work in docker
Refs: OPS-85
2025-03-23 18:13:17 +01:00

23 lines
365 B
Docker

FROM python:3.11 AS base
ENV POETRY_VIRTUALENVS_CREATE=true
ENV FLASK_APP=senju/main.py
COPY ./entrypoint.sh /
WORKDIR /app
COPY . .
# Install dependencies
RUN apt update && apt install curl bash jq
RUN pip install poetry
RUN poetry install -v
FROM base as dev
# Expose development port
EXPOSE 5000
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]