Skip to content

Commit e6adb50

Browse files
committed
NOISSUE - Fix Dockerfile and CI
Signed-off-by: dusan <borovcanindusan1@gmail.com>
1 parent 6befba8 commit e6adb50

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docker/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ WORKDIR /go/src/github.com/absmach/callhome
1010
COPY . .
1111
RUN go mod tidy
1212
RUN apk update \
13-
&& apk add make npm\
14-
&& make $SVC \
15-
&& mv build/$SVC /exe
13+
&& apk add make npm
14+
15+
# Install npm dependencies before building
16+
RUN npm install
1617

17-
# Build minified assets
18-
RUN npm install && npm run build
18+
RUN make $SVC \
19+
&& mv build/$SVC /exe
1920

2021
FROM scratch
2122
# Certificates are needed so that mailing util can work.

0 commit comments

Comments
 (0)