lunch-go/Dockerfile

16 lines
253 B
Docker
Raw Permalink Normal View History

2022-10-29 11:43:24 +00:00
FROM golang:1.18-alpine AS build
WORKDIR /app
COPY . ./
RUN go mod download
RUN cd /app/cmd/lunch-go && go build -o /lunch-go
FROM alpine
RUN apk update && apk add poppler-utils
2022-10-29 12:28:35 +00:00
COPY --from=build /lunch-go /lunch-go
2022-10-29 11:43:24 +00:00
EXPOSE 8080
CMD [ "/lunch-go" ]