File tree 2 files changed +12
-7
lines changed
endpoints/getting-started
2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change
1
+ # The Google App Engine Flexible Environment base Docker image can
2
+ # also be used on Google Container Engine, or any other Docker host.
3
+ # This image is based on Debian Jessie and includes nodejs and npm
4
+ # installed from nodejs.org. The source is located in
5
+ # https://github.com/GoogleCloudPlatform/nodejs-docker
1
6
FROM gcr.io/google_appengine/nodejs
2
7
3
8
ADD . /app
4
9
WORKDIR /app
5
10
6
11
RUN npm install
7
- ENV PORT=8081
12
+ ENV PORT=8080
8
13
ENTRYPOINT ["npm", "start"]
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ metadata:
19
19
spec :
20
20
ports :
21
21
- port : 80
22
- targetPort : 8080
22
+ targetPort : 8081
23
23
protocol : TCP
24
24
name : http
25
25
selector :
@@ -42,15 +42,15 @@ spec:
42
42
- name : esp
43
43
image : b.gcr.io/endpoints/endpoints-runtime:0.3
44
44
args : [
45
- " -p" , "8080 ",
46
- " -a" , "127.0.0.1:8081 ",
45
+ " -p" , "8081 ",
46
+ " -a" , "127.0.0.1:8080 ",
47
47
" -s" , "SERVICE_NAME",
48
48
" -v" , "SERVICE_VERSION",
49
49
]
50
50
# [END esp]
51
51
ports :
52
- - containerPort : 8080
52
+ - containerPort : 8081
53
53
- name : echo
54
- image : gcr.io/google-samples/node- echo:1.0
54
+ image : gcr.io/google-samples/echo-node :1.0
55
55
ports :
56
- - containerPort : 8081
56
+ - containerPort : 8080
You can’t perform that action at this time.
0 commit comments