Skip to content

Commit 92b7e2c

Browse files
committed
fix: write /app/version so version tags get produced
1 parent 2777f35 commit 92b7e2c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎Containerfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ LABEL org.opencontainers.image.title="Python" \
2323
# Install dependencies
2424
RUN pkg update && \
2525
pkg install -y python${PYTHON_VERSION} && \
26+
mkdir -p /app && \
27+
pkg query %v python${PYTHON_VERSION} > /app/version && \
2628
pkg clean -ay && \
2729
rm -rf /var/cache/pkg/* /var/db/pkg/repos/*

‎Containerfile.j2‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ LABEL org.opencontainers.image.title="Python" \
1717
# Install dependencies
1818
RUN pkg update && \
1919
pkg install -y python${PYTHON_VERSION} && \
20+
mkdir -p /app && \
21+
pkg query %v python${PYTHON_VERSION} > /app/version && \
2022
pkg clean -ay && \
2123
rm -rf /var/cache/pkg/* /var/db/pkg/repos/*

0 commit comments

Comments
 (0)