File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM docker.io/golang:1.23.4-alpine3.21 as builder
2
+
3
+ WORKDIR /workspace
4
+
5
+ COPY qubership-apihub-service qubership-apihub-service
6
+
7
+ WORKDIR /workspace/qubership-apihub-service
8
+
9
+ RUN set GOSUMDB=off && set CGO_ENABLED=0 && set GOOS=linux && go mod tidy && go mod download && go build .
10
+
1
11
FROM docker.io/golang:1.23.4-alpine3.21
2
12
3
13
MAINTAINER qubership.org
@@ -8,7 +18,7 @@ USER root
8
18
9
19
RUN apk --no-cache add curl
10
20
11
- ADD qubership-apihub-service/qubership-apihub-service ./qubership-apihub-service
21
+ COPY --from=builder /workspace/ qubership-apihub-service/qubership-apihub-service ./qubership-apihub-service
12
22
ADD qubership-apihub-service/static ./static
13
23
ADD qubership-apihub-service/resources ./resources
14
24
ADD docs/api ./api
You can’t perform that action at this time.
0 commit comments