added
This commit is contained in:
1 parent
eac3d5dc45
commit
2a2b00733b
83 files changed
+4840
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
ARG APP_GIT_COMMIT=unknown
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1 \
|
||||
EMAIL_LIST_GIT_COMMIT=${APP_GIT_COMMIT}
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml README.md ./
|
||||
COPY src ./src
|
||||
COPY templates ./templates
|
||||
COPY campaigns ./campaigns
|
||||
COPY operations ./operations
|
||||
RUN pip install --no-cache-dir .
|
||||
|
||||
RUN useradd --create-home --uid 1000 appuser \
|
||||
&& mkdir -p /data /config \
|
||||
&& chown -R appuser:appuser /data /config
|
||||
USER appuser
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
||||
CMD ["email-list", "system", "check", "--json"]
|
||||
|
||||
ENTRYPOINT ["email-list"]
|
||||
CMD ["system", "check", "--json"]
|
||||
Reference in new issue
Block a user