Skip to content

Commit a1500e2

Browse files
committed
Use recommended docker steps
Context: I am bad at docker
1 parent 7aa035e commit a1500e2

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

Resources/docker/app/Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
FROM python:3.13.22-alpine AS builder
1+
FROM python:3.13.7-alpine AS builder
22

33
ENV PYTHONUNBUFFERED=1
44

55
RUN mkdir /code
66
WORKDIR /code
77

8-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
8+
# Install UV
9+
RUN apk add --no-cache curl
10+
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
911

10-
ADD pyproject.toml /code/
12+
# Copy dependency files
13+
ADD pyproject.toml uv.lock* /code/
14+
15+
# Install dependencies
1116
RUN apk add --no-cache postgresql-libs libstdc++
1217
RUN apk add --no-cache --virtual .build-deps gcc g++ musl-dev \
1318
postgresql-dev binutils rust cargo && \
14-
uv sync
19+
/root/.local/bin/uv sync --frozen --no-dev
1520

16-
FROM python:3.13.22-alpine
21+
FROM python:3.13.7-alpine
1722

1823
ENV PYTHONUNBUFFERED=1
1924
ENV DJANGO_SETTINGS_MODULE='config.docker-compose'

0 commit comments

Comments
 (0)