File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ COPY vendor vendor
17
17
COPY handler handler
18
18
COPY version version
19
19
COPY nats nats
20
- COPY main.go .
21
- COPY types.go .
22
- COPY readconfig.go .
20
+ COPY go.mod .
21
+ COPY go.sum .
22
+ COPY main.go .
23
+ COPY types.go .
24
+ COPY auth.go .
25
+ COPY .git .
26
+ COPY readconfig.go .
23
27
COPY readconfig_test.go .
24
- COPY auth.go .
25
- COPY .git .
26
28
27
29
ARG go_opts
28
30
@@ -32,7 +34,7 @@ RUN VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags
32
34
--ldflags "-s -w \
33
35
-X github.com/openfaas/nats-queue-worker/version.GitCommit=${GIT_COMMIT}\
34
36
-X github.com/openfaas/nats-queue-worker/version.Version=${VERSION}" \
35
- -a -installsuffix cgo -o app .
37
+ -a -installsuffix cgo -o worker .
36
38
37
39
# we can't add user in next stage because it's from scratch
38
40
# ca-certificates and tmp folder are also missing in scratch
@@ -41,5 +43,5 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} gcr.io/distroless/static:nonroot
41
43
42
44
WORKDIR /
43
45
USER nonroot:nonroot
44
- COPY --from=build /go/src/github.com/openfaas/nats-queue-worker/app .
45
- CMD ["./app " ]
46
+ COPY --from=build /go/src/github.com/openfaas/nats-queue-worker/worker .
47
+ CMD ["/worker " ]
You can’t perform that action at this time.
0 commit comments