golifehk/Dockerfile

22 lines
326 B
Docker
Raw Normal View History

2022-09-14 15:40:51 +00:00
FROM golang:1.19-alpine AS build
2022-09-14 15:21:27 +00:00
WORKDIR /app
COPY [ "go.mod", "go.sum", "./" ]
RUN go mod download
COPY "datasources" "./datasources/"
COPY "utils" "./utils/"
COPY *.go ./
RUN go build -o /golifehkbot
2022-09-14 15:40:51 +00:00
FROM scratch
COPY --chown=0:0 --from=build /golifehkbot /
WORKDIR /tmp
2022-09-14 15:21:27 +00:00
CMD [ "/golifehkbot" ]