Release v2
This commit is contained in:
+9
-5
@@ -1,10 +1,14 @@
|
||||
FROM rust:latest
|
||||
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/
|
||||
|
||||
COPY . .
|
||||
# Run with --no-dev on not to install dev dependencies.
|
||||
RUN python3 -m uv sync --no-dev
|
||||
|
||||
RUN cargo build --release
|
||||
# Copy the rest of your app.
|
||||
COPY . /app/
|
||||
|
||||
ENTRYPOINT ["cargo"]
|
||||
CMD ["run", "--release"]
|
||||
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}" ]
|
||||
Reference in New Issue
Block a user