Files
gw-svelte/mail-api/Dockerfile
T

20 lines
461 B
Docker
Raw Normal View History

2026-05-04 20:32:24 +12:00
ARG APP_VERSION=4.0.2
2026-05-02 19:44:45 +12:00
2026-05-02 08:26:18 +12:00
FROM python:3.12-slim
2026-05-02 19:44:45 +12:00
ARG APP_VERSION
2026-05-02 08:26:18 +12:00
WORKDIR /app
2026-05-02 19:44:45 +12:00
ENV APP_VERSION=${APP_VERSION}
ENV TZ=Pacific/Auckland
LABEL org.opencontainers.image.version="${APP_VERSION}"
2026-05-02 08:26:18 +12:00
COPY requirements.txt .
2026-05-02 19:44:45 +12:00
RUN apt-get update \
&& apt-get install -y --no-install-recommends tzdata \
&& rm -rf /var/lib/apt/lists/*
2026-05-02 08:26:18 +12:00
RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]