mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
22 lines
445 B
Text
22 lines
445 B
Text
# syntax=docker/dockerfile:1
|
|
|
|
FROM python:3.12-alpine
|
|
|
|
# VENV not needed in docker container
|
|
ENV POETRY_VIRTUALENVS_CREATE=false
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN pip install poetry
|
|
RUN poetry install
|
|
|
|
# Expose development port
|
|
EXPOSE 5000
|
|
|
|
# Include host flag to make flask listen on all interfaces
|
|
# Otherwise it is not accessible from the outside.
|
|
CMD [ "flask", "--app", "senju/main", "run", "--debug", "--host=0.0.0.0"]
|
|
|