mirror of
https://github.com/ChrispyBacon-dev/DockFlare.git
synced 2026-04-29 04:09:33 +00:00
24 lines
441 B
Docker
24 lines
441 B
Docker
FROM python:3.13.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
RUN groupadd -g 65532 mailmgr && \
|
|
useradd -u 65532 -g mailmgr -m -s /bin/bash mailmgr
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY app/ ./app/
|
|
COPY entrypoint.py .
|
|
|
|
RUN mkdir -p /data/attachments /data/db && \
|
|
chown -R mailmgr:mailmgr /data
|
|
|
|
USER mailmgr
|
|
|
|
EXPOSE 8025
|
|
|
|
CMD ["python", "entrypoint.py"]
|