Skip to content

Commit c682cc7

Browse files
Enhance Dockerfile with versioning support
Add build arguments and environment variables for versioning.
1 parent d4870d8 commit c682cc7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ FROM python:3
22

33
COPY . .
44

5+
ARG APP_VERSION
6+
ENV VCS_VERSIONING_PRETEND_VERSION=${APP_VERSION}
7+
58
RUN apt-get update && \
69
apt-get install -y bubblewrap && \
710
rm -rf /var/lib/apt/lists/*
811

912
RUN pip install .
1013

11-
CMD ese-run
14+
CMD ["ese-run"]

0 commit comments

Comments
 (0)