1
0
forked from zv0n/lunch-go
lunch-go/Dockerfile

16 lines
253 B
Docker
Raw 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
COPY --from=build /lunch-go /lunch-go
RUN apk update && apk add poppler-utils
EXPOSE 8080
CMD [ "/lunch-go" ]