File tree 5 files changed +43
-8
lines changed
5 files changed +43
-8
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ RUN npm install
16
16
# copy project files
17
17
COPY . .
18
18
19
- EXPOSE 80 443
19
+ EXPOSE 8080
20
20
STOPSIGNAL SIGTERM
21
21
CMD [ "node", "server.js" ]
Original file line number Diff line number Diff line change
1
+ FROM node:14
2
+
3
+ # set environment variables
4
+ ENV APP=/usr/src/app
5
+
6
+ # where the code lives
7
+ WORKDIR $APP
8
+
9
+ # Install app dependencies
10
+ # A wildcard is used to ensure both package.json AND package-lock.json are copied
11
+ # where available (npm@5+)
12
+ COPY package*.json ./
13
+
14
+ RUN npm install
15
+
16
+ # copy project files
17
+ COPY . .
18
+
19
+ EXPOSE 8080
20
+ STOPSIGNAL SIGTERM
21
+ CMD [ "npm", "build" ]
Original file line number Diff line number Diff line change
1
+ services :
2
+ backend :
3
+ env_file :
4
+ ' ./.env'
5
+ build :
6
+ context : .
7
+ dockerfile : ./Dockerfile-api
8
+ image : ' '
9
+ ports :
10
+ - ' 8080'
11
+ frontend :
12
+ build :
13
+ context : .
14
+ dockerfile : ./Dockerfile-ui
15
+ image : ' '
16
+ ports :
17
+ - ' 6002'
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ WORKDIR $APP
11
11
# where available (npm@5+)
12
12
COPY package*.json ./
13
13
14
+ COPY .env .
15
+
14
16
RUN npm install
15
17
16
18
# copy project
@@ -20,10 +22,7 @@ COPY . .
20
22
# variables in place at build time so we make sure our workflow files take care of
21
23
# populating this file with the correct values
22
24
23
- # Copy environment file generated by CI (GitHub Actions)
24
- COPY .env .
25
- RUN npm run build
26
25
27
- EXPOSE 3000
26
+ EXPOSE 6002
28
27
STOPSIGNAL SIGTERM
29
- CMD ["npm", "start "]
28
+ CMD ["npm", "ui "]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments