feat: docker
This commit is contained in:
17
Containerfile
Normal file
17
Containerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM golang:alpine AS backend_build
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go build -o /healthr
|
||||
|
||||
FROM alpine:edge AS backend
|
||||
|
||||
COPY --from=backend_build /healthr /healthr
|
||||
|
||||
EXPOSE 8090
|
||||
|
||||
CMD [ "/healthr" ]
|
||||
Reference in New Issue
Block a user