File tree Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 1
- FROM node:8.5.0
1
+ FROM node:alpine
2
2
3
3
LABEL Sean Bradley <
[email protected] >
4
4
@@ -8,7 +8,6 @@ COPY dist /nodejs/dist
8
8
9
9
WORKDIR /nodejs
10
10
11
- EXPOSE 3000
12
-
13
11
RUN npm install
14
12
13
+ EXPOSE 3000:3000
Original file line number Diff line number Diff line change 1
1
version : ' 2'
2
2
services :
3
- # nginx:
4
- # build:
5
- # context: nginx
6
- # dockerfile: Dockerfile
7
- # ports:
8
- # - "80:80"
9
- # command: nginx -g "daemon off";
10
- # depends_on:
11
- # - nodejs
3
+ nginx :
4
+ build :
5
+ context : nginx
6
+ dockerfile : Dockerfile
7
+ ports :
8
+ - " 80:80"
9
+ command : nginx -g "daemon off";
10
+ depends_on :
11
+ - nodejs
12
12
13
13
nodejs :
14
14
build :
15
15
context : .
16
16
dockerfile : Dockerfile
17
- # expose:
18
- # - "3000"
19
- ports :
20
- - " 3000:3000"
17
+ expose :
18
+ - " 3000"
21
19
command : npm start
22
20
23
21
You can’t perform that action at this time.
0 commit comments