We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6befba8 commit e6adb50Copy full SHA for e6adb50
docker/Dockerfile
@@ -10,12 +10,13 @@ WORKDIR /go/src/github.com/absmach/callhome
10
COPY . .
11
RUN go mod tidy
12
RUN apk update \
13
- && apk add make npm\
14
- && make $SVC \
15
- && mv build/$SVC /exe
+ && apk add make npm
+
+# Install npm dependencies before building
16
+RUN npm install
17
-# Build minified assets
18
-RUN npm install && npm run build
+RUN make $SVC \
19
+ && mv build/$SVC /exe
20
21
FROM scratch
22
# Certificates are needed so that mailing util can work.
0 commit comments