generated from nyeki/uv-fastapi-tortoise
Initial commit
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
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 project:app --workers ${WORKERS:-$(nproc)} --host ${BIND_HOST:-0.0.0.0} --port ${BIND_PORT:-8000}" ]
|
||||
Reference in New Issue
Block a user