Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# syntax=docker/dockerfile:1
|
2 |
+
|
3 |
+
FROM golang:1.22 AS builder
|
4 |
+
WORKDIR /go/src/github.com/OwO-Network/DeepLX
|
5 |
+
COPY main.go ./
|
6 |
+
COPY dto.go ./
|
7 |
+
COPY go.mod ./
|
8 |
+
COPY go.sum ./
|
9 |
+
RUN go get -d -v ./
|
10 |
+
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
|
11 |
+
|
12 |
+
FROM alpine:latest
|
13 |
+
WORKDIR /app
|
14 |
+
COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
|
15 |
+
CMD ["/app/deeplx"]
|