Upload 2 files
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ FROM golang:1.23-alpine AS builder
|
|
| 4 |
WORKDIR /app
|
| 5 |
RUN apk add git make && git clone https://github.com/bincooo/chatgpt-adapter.git .
|
| 6 |
RUN make install
|
| 7 |
-
RUN
|
| 8 |
|
| 9 |
FROM alpine:latest
|
| 10 |
|
|
|
|
| 4 |
WORKDIR /app
|
| 5 |
RUN apk add git make && git clone https://github.com/bincooo/chatgpt-adapter.git .
|
| 6 |
RUN make install
|
| 7 |
+
RUN CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -toolexec iocgo -ldflags="-s -w" -o bin/linux/server -trimpath main.go
|
| 8 |
|
| 9 |
FROM alpine:latest
|
| 10 |
|