Skip to content

Commit

Permalink
Also use non-slim image in the first stage
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Dec 17, 2024
1 parent 87e96e7 commit 87a4a94
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,7 @@ ARG POETRY_VERSION=1.8.3
###
### This stage is platform-agnostic, so we can use the build platform in case of cross-compilation.
###
FROM --platform=$BUILDPLATFORM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm-slim AS requirements

# Tell apt to keep downloaded package files, as we're using cache mounts.
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache

RUN \
--mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update -qq && apt-get install -yqq \
build-essential curl git libffi-dev libssl-dev pkg-config
FROM --platform=$BUILDPLATFORM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm AS requirements

WORKDIR /synapse

Expand Down

0 comments on commit 87a4a94

Please sign in to comment.