создание и маунт папки /workspace

This commit is contained in:
Егор Кандрушин 2026-04-08 15:00:01 +03:00
parent a176dcac52
commit 745512aa4b
5 changed files with 16 additions and 2 deletions

View file

@ -17,8 +17,6 @@ RUN uv pip install git+https://git.lambda.coredump.ru/platform/agent_api.git
FROM base as production
RUN useradd --create-home --shell /bin/bash appuser
COPY --from=builder /app/.venv /app/.venv
ENV PATH="/app/.venv/bin:$PATH"
@ -26,8 +24,12 @@ COPY src/ /app/src/
COPY Makefile ./
COPY .mk/ ./.mk/
RUN useradd --shell /bin/bash appuser
USER appuser
ENV WORKSPACE_DIR="/workspace/"
RUN mkdir -p $WORKSPACE_DIR && chown appuser:appuser $WORKSPACE_DIR
EXPOSE 8000
CMD ["make", "uvicorn-prod"]
@ -47,6 +49,8 @@ ENV PATH="/app/.venv/bin:$PATH"
COPY Makefile ./
COPY .mk/ ./.mk/
ENV WORKSPACE_DIR="/workspace/"
EXPOSE 8000
CMD ["make", "uvicorn-dev"]