generated from geekiot/python-template
20 lines
380 B
Docker
20 lines
380 B
Docker
FROM ghcr.io/astral-sh/uv:trixie-slim
|
|
|
|
# Settings for UV
|
|
ENV UV_COMPILE_BYTECODE=1
|
|
ENV UV_TOOL_BIN_DIR=/usr/local/bin
|
|
|
|
# Copy base project files
|
|
COPY . /urfu-daddy
|
|
|
|
# Set working dir
|
|
WORKDIR /urfu-daddy
|
|
|
|
# Run UV commands
|
|
RUN uv sync --locked --no-install-project --no-dev
|
|
|
|
# Add uv installed tools to path
|
|
ENV PATH="/urfu-daddy/.venv/bin:$PATH"
|
|
|
|
# Clear entrypoint
|
|
ENTRYPOINT []
|