Dockerfile
This commit is contained in:
parent
604b80e985
commit
a596e5bd24
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
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" ]
|
Loading…
Reference in New Issue
Block a user