We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20dd146 commit 50d60d1Copy full SHA for 50d60d1
integration/examples/nodejs/backend/Dockerfile
@@ -1,8 +1,10 @@
1
FROM node:8.12.0-alpine
2
3
+ARG SCRIPT
4
+ENV SCRIPT ${SCRIPT}
5
WORKDIR /opt/backend
6
EXPOSE 3000
-CMD ["npm", "run", "dev"]
7
+CMD ["npm", "run", ${SCRIPT}]
8
9
COPY . .
10
RUN npm install
integration/examples/nodejs/skaffold.yaml
@@ -4,6 +4,9 @@ build:
artifacts:
- image: gcr.io/k8s-skaffold/node-example
context: backend
+ docker:
+ buildArgs:
+ SCRIPT: "{{.SCRIPT_ENV}}"
sync:
11
'*.js': .
12
deploy:
integration/run_test.go
@@ -45,6 +45,7 @@ func TestRun(t *testing.T) {
45
}, {
46
description: "nodejs",
47
dir: "examples/nodejs",
48
+ env: []string{"SCRIPT_ENV=dev"},
49
pods: []string{"node"},
50
51
description: "structure-tests",
0 commit comments