mirror of
https://github.com/System-End/nephthys.git
synced 2026-04-19 23:22:50 +00:00
22 lines
No EOL
406 B
Docker
22 lines
No EOL
406 B
Docker
FROM python:3.13-slim-bookworm
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
|
|
|
ADD . /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt update
|
|
RUN apt install -y curl libatomic1
|
|
|
|
RUN uv python install
|
|
RUN uv sync --frozen
|
|
|
|
EXPOSE 3000
|
|
|
|
ENV PATH="/app/.venv/bin:$PATH"
|
|
|
|
RUN prisma db push
|
|
|
|
CMD ["nephthys"]
|
|
|
|
HEALTHCHECK --start-period=5s CMD curl --fail http://localhost:3000/health | grep -E '"healthy":\s*true' || exit 1 |