We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f7e46 commit 4bf68c5Copy full SHA for 4bf68c5
‎Dockerfile
@@ -1,7 +1,9 @@
1
FROM rust:1.65 as builder
2
-COPY . .
3
-RUN cargo build --release
4
-FROM debian:buster-slim
5
-COPY --from=builder /target/release/chatgpt-proxy-server /usr/local/bin/chatgpt-proxy-server
+WORKDIR /app
+COPY Cargo.toml Cargo.toml
+COPY src src
+RUN cargo build --target x86_64-unknown-linux-musl --release
6
+FROM scratch
7
+COPY --from=builder /app/target/release/chatgpt-proxy-server /usr/local/bin/chatgpt-proxy-server
8
EXPOSE 3000
9
CMD ["chatgpt-proxy-server"]
0 commit comments