updated dockerfile for back
This commit is contained in:
parent
4f89c3158c
commit
31ff211a7e
@ -1,15 +1,12 @@
|
|||||||
FROM golang:1.23.3-alpine3.20
|
FROM golang:1.23.3-alpine3.20 AS builder
|
||||||
|
|
||||||
WORKDIR /enshi_app
|
WORKDIR /enshi_app
|
||||||
|
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go build -o enshi_bin .
|
RUN go build -o enshi_bin .
|
||||||
|
|
||||||
|
FROM alpine
|
||||||
|
COPY --from=builder /enshi_app/enshi_bin /usr/local/bin/enshi_bin
|
||||||
EXPOSE 9876
|
EXPOSE 9876
|
||||||
|
ENTRYPOINT [ "/usr/local/bin/enshi_bin" ]
|
||||||
CMD [ "./enshi_bin" ]
|
|
||||||
Loading…
x
Reference in New Issue
Block a user