fedilogue/fedilogger/Dockerfile

12 lines
221 B
Docker
Raw Normal View History

FROM golang:latest AS build
WORKDIR /build
COPY go.mod go.sum .
RUN go mod download
COPY . .
RUN go build .
FROM alpine:latest
2021-03-17 23:15:09 +00:00
WORKDIR /app
COPY --from=build /build/fedilogger /app/fedilogger
ENTRYPOINT ["/app/restapi"]