Skip to content

Commit 2fe5cf5

Browse files
committed
chore: combine apt commands for fewer layers
1 parent 0293fe5 commit 2fe5cf5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -762,18 +762,15 @@ COPY --from=supautils /tmp/*.deb /tmp/
762762
# Build final image
763763
####################
764764
FROM base as production
765-
# Install essential packages
766-
RUN apt-get update && apt-get install -y --no-install-recommends \
767-
# Needed for anything using libcurl
768-
# https://github.com/supabase/postgres/issues/573
769-
ca-certificates \
770-
&& rm -rf /var/lib/apt/lists/*
771765

772766
# Setup extensions
773767
COPY --from=extensions /tmp /tmp
774768
ENV DEBIAN_FRONTEND=noninteractive
775769
RUN apt-get update && apt-get install -y --no-install-recommends \
776770
/tmp/*.deb \
771+
# Needed for anything using libcurl
772+
# https://github.com/supabase/postgres/issues/573
773+
ca-certificates \
777774
&& rm -rf /var/lib/apt/lists/* /tmp/*
778775

779776
# Initialise configs

0 commit comments

Comments
 (0)