We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ca7b22 commit 7a3ff2cCopy full SHA for 7a3ff2c
2 files changed
docker-compose.yml
@@ -8,6 +8,8 @@ services:
8
build:
9
context: .
10
dockerfile: node.dockerfile
11
+ args:
12
+ buildversion: 1
13
ports:
14
- "3000:3000"
15
networks:
node.dockerfile
@@ -21,8 +21,11 @@ FROM node:alpine
21
22
LABEL author="Dan Wahlin"
23
24
+ARG buildversion
25
+
26
ENV NODE_ENV=production
27
ENV PORT=3000
28
+ENV build=$buildversion
29
30
WORKDIR /var/www
31
COPY package.json package-lock.json ./
@@ -31,4 +34,6 @@ RUN npm install
34
COPY . ./
32
35
EXPOSE $PORT
33
36
37
+RUN echo "Build version: $build"
38
39
ENTRYPOINT ["npm", "start"]
0 commit comments