Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
FROM python:3.12-slim
FROM python:3.12-slim AS builder
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

# Install uv
RUN pip install --no-cache-dir uv
# Disable development dependencies in uv
ENV UV_NO_DEV=1

# Set working directory
# Set working directory for all subsequent commands
WORKDIR /app

# Copy project files
# Python environment variables:
# Prevents Python from writing .pyc files to disk
ENV PYTHONDONTWRITEBYTECODE=1

COPY . .

# Install dependencies with uv
RUN uv sync --frozen --no-dev
# Install using uv
RUN uv sync --locked

ENV APP_MODULE=splash_userservice.api:app
EXPOSE 80
Expand Down
94 changes: 66 additions & 28 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading