fedilogue/restapi/Dockerfile
Farhan Khan c6ba6fdfde Updated Dockerfile
Accidentally committed a directory twice
2025-01-24 21:12:19 +00:00

13 lines
242 B
Docker

FROM golang:latest AS build
WORKDIR /build
COPY go.mod go.sum .
RUN go mod download
COPY . .
RUN go build .
FROM alpine:latest AS run
WORKDIR /app
RUN apk add gcompat
COPY --from=build /build/restapi /app/restapi
ENTRYPOINT ["/app/restapi"]