Skip to content

Commit 4bf68c5

Browse files
committed
💚 Change Dockerfile
1 parent e7f7e46 commit 4bf68c5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
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
2+
WORKDIR /app
3+
COPY Cargo.toml Cargo.toml
4+
COPY src src
5+
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
68
EXPOSE 3000
79
CMD ["chatgpt-proxy-server"]

0 commit comments

Comments
 (0)