DeepLX/Dockerfile

16 lines
376 B
Docker
Raw Normal View History

# syntax=docker/dockerfile:1
2024-03-21 04:46:07 +08:00
FROM golang:1.22 AS builder
WORKDIR /go/src/github.com/OwO-Network/DeepLX
COPY main.go ./
2024-03-21 04:52:54 +08:00
COPY dto.go ./
COPY go.mod ./
COPY go.sum ./
RUN go get -d -v ./
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
FROM alpine:latest
WORKDIR /app
COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
CMD ["/app/deeplx"]