File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Use the base image with Node.js
2
2
FROM node:20
3
3
4
- # Copy the current directory into the Docker image
5
- COPY . /topcoder-x-ui
6
-
7
- # Set working directory for future use
8
- WORKDIR /topcoder-x-ui
9
-
10
- # Install the dependencies from package.json
4
+ WORKDIR /usr/src/app
11
5
RUN git config --global url."https://git@" .insteadOf git://
12
- RUN npm install --legacy-peer-deps
6
+ COPY package.json package-lock.json* ./
7
+ RUN npm ci --silent --legacy-peer-deps
8
+ COPY . .
13
9
RUN npm run build
14
- # RUN npm test
15
10
16
11
CMD npm start
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ const partialsFn = () => {
20
20
quotes : true
21
21
} ) )
22
22
. pipe ( $ . angularTemplatecache ( 'templateCacheHtml.js' , {
23
- module : 'topcoderX'
23
+ module : 'topcoderX' ,
24
+ root : 'app' ,
24
25
} ) )
25
26
. pipe ( gulp . dest ( paths . tmp + '/partials/' ) ) ;
26
27
}
You can’t perform that action at this time.
0 commit comments