mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2025-06-08 18:03:25 +00:00
Create Dockerfile
build docker image for DeepLX
This commit is contained in:
parent
8579f68985
commit
890a211a92
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
|
FROM golang:1.19 AS builder
|
||||||
|
WORKDIR /go/src/github.com/OwO-Network/DeepLX
|
||||||
|
COPY main.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"]
|
Loading…
Reference in New Issue
Block a user