Files
2026-07-16 02:12:29 -03:00

14 lines
501 B
Docker

FROM git.moan.dev/docker/python/with-uv:3.14-alpine
# Only copy uv-related files, necessary for syncing and caching.
WORKDIR /app
COPY pyproject.toml uv.lock /app/
# Run with --no-dev on not to install dev dependencies.
RUN python3 -m uv sync --no-dev
# Copy the rest of your app.
COPY . /app/
ENTRYPOINT [ "/bin/sh", "-c" ]
CMD [ "cd /app && python3 -m uv run --no-dev uvicorn nyekiapi:app --workers ${NYEKI_WORKERS:-$(nproc)} --host ${NYEKI_BIND_HOST:-0.0.0.0} --port ${NYEKI_BIND_PORT:-8000}" ]