Skip to content

Commit 125ac7d

Browse files
committed
Update Dockerfile to create VERSION file with version details during build
1 parent 15b568e commit 125ac7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ WORKDIR /home/node
99
COPY package.json package-lock.json tsconfig.json /home/node/
1010
RUN npm ci --legacy-peer-deps
1111

12-
COPY VERSION /home/node/../VERSION
12+
USER root
13+
RUN mkdir -p /home && echo -e "VERSION_MAJOR=1\nVERSION_MINOR=0\nVERSION_PATCH=0\nVERSION_SUFFIX=" > /home/VERSION
14+
USER node
1315

1416
COPY entrypoint.sh /entrypoint.sh
1517

0 commit comments

Comments
 (0)