Files
port-ui/Dockerfile

21 lines
438 B
Docker
Raw Permalink Normal View History

FROM python:3.12-slim
2025-01-08 14:59:36 +01:00
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
FLASK_HOST=0.0.0.0
# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends nodejs npm && rm -rf /var/lib/apt/lists/*
WORKDIR /tmp/build
2025-01-08 14:59:36 +01:00
COPY pyproject.toml README.md main.py ./
COPY app ./app
RUN python -m pip install --no-cache-dir .
2025-01-08 14:59:36 +01:00
WORKDIR /app
2025-01-08 14:59:36 +01:00
COPY app/ .
RUN npm install --prefix /app
2025-01-08 14:59:36 +01:00
2025-07-05 11:06:42 +02:00
CMD ["python", "app.py"]