generated from geekiot/python-template
Add [docker]: add docker bot image file & compose file
This commit is contained in:
parent
8251aa21bd
commit
abf8c2c55a
2 changed files with 28 additions and 0 deletions
20
docker/Dockerfile
Normal file
20
docker/Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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 []
|
||||
Loading…
Add table
Add a link
Reference in a new issue