deployment
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM golang:1.22.5-alpine3.20 as builder
|
||||
|
||||
RUN mkdir -p /go/src
|
||||
COPY ./src/ /go/src
|
||||
WORKDIR /go/src/ma
|
||||
RUN go build -a -installsuffix nocgo -o ma main.go
|
||||
|
||||
|
||||
FROM scratch
|
||||
|
||||
ENV MA_CONF ""
|
||||
|
||||
COPY --from=builder /go/src/ma ./
|
||||
ENTRYPOINT ["./ma"]
|
||||
|
Reference in New Issue
Block a user