IHaBiS commited on
Commit
b19e472
1 Parent(s): 778cc78

Create Dockerfile

Browse files
Files changed (1) hide show
  1. 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"]