Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 1fb8add

Browse files
committed
Attempt to fix build issue
1 parent 72c714b commit 1fb8add

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

Diff for: docker/Dockerfile

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
# Use the base image with Node.js
22
FROM node:20
33

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
115
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 . .
139
RUN npm run build
14-
#RUN npm test
1510

1611
CMD npm start

Diff for: gulp/build.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const partialsFn = () => {
2020
quotes: true
2121
}))
2222
.pipe($.angularTemplatecache('templateCacheHtml.js', {
23-
module: 'topcoderX'
23+
module: 'topcoderX',
24+
root: 'app',
2425
}))
2526
.pipe(gulp.dest(paths.tmp + '/partials/'));
2627
}

0 commit comments

Comments
 (0)