chore(deploy): add production caddy setup

This commit is contained in:
2026-07-14 10:43:12 +03:30
parent c122aab57c
commit e99060de41
13 changed files with 195 additions and 20 deletions

View File

@@ -8,14 +8,16 @@ WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& groupadd --system app \
&& useradd --system --gid app --home-dir /app app \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml README.md ./
COPY src ./src
COPY proto ./proto
RUN pip install --no-cache-dir ".[dev]" \
&& python -m gapido_auth.tools.generate_proto
RUN pip install --no-cache-dir "."
USER app
CMD ["python", "-m", "gapido_auth.transport.grpc.server"]