Fixed incorrect build settings
This commit is contained in:
parent
f022b237ef
commit
79a873becd
@ -10,11 +10,11 @@ COPY "datasources" "./datasources/"
|
||||
COPY "utils" "./utils/"
|
||||
COPY *.go ./
|
||||
|
||||
RUN go build -o /golifehkbot
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /golifehkbot
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /golifehkbot /
|
||||
|
||||
WORKDIR /tmp
|
||||
WORKDIR /
|
||||
CMD [ "/golifehkbot" ]
|
||||
|
Loading…
Reference in New Issue
Block a user