Skip to content

Commit 641ff93

Browse files
committed
Save 2 layers :)
1 parent 29dcaa6 commit 641ff93

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

airflow/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ RUN microdnf update && \
4343
# Needed to modify the SBOM
4444
jq && \
4545
microdnf clean all && \
46-
rm -rf /var/cache/yum
47-
48-
RUN <<EOF
46+
rm -rf /var/cache/yum && \
47+
bash <<EOF
4948
python${PYTHON} -m venv --system-site-packages /stackable/app
5049

5150
source /stackable/app/bin/activate
@@ -119,9 +118,8 @@ RUN microdnf update && \
119118
socat \
120119
unixODBC && \
121120
microdnf clean all && \
122-
rm -rf /var/cache/yum
123-
124-
RUN <<EOF
121+
rm -rf /var/cache/yum && \
122+
bash <<EOF
125123
# Get the correct `tini` binary for our architecture.
126124
# It is used as an init alternative in the entrypoint
127125
curl -o /usr/bin/tini "https://repo.stackable.tech/repository/packages/tini/tini-${TINI}-${TARGETARCH}"

0 commit comments

Comments
 (0)