mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-12-01 14:57:52 +00:00
Raise go.mod to 1.27.0 and the Dockerfile builder to golang:1.27. Pin setup-go in the CI and release workflows to 1.27.1 so they match the module's minimum instead of lagging behind it (previously 1.24.2 vs go 1.25.0).
14 lines
411 B
Docker
14 lines
411 B
Docker
FROM golang:1.27 AS builder
|
|
WORKDIR /go/src/github.com/OwO-Network/DLX
|
|
COPY . .
|
|
RUN go get -d -v ./
|
|
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /app
|
|
RUN addgroup -S deeplx && adduser -h /app -G deeplx -SH deeplx
|
|
USER deeplx:deeplx
|
|
COPY --from=builder --chown=deeplx:deeplx /go/src/github.com/OwO-Network/DLX/deeplx /app/deeplx
|
|
EXPOSE 1188
|
|
ENTRYPOINT ["/app/deeplx"]
|