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 bd84f32 commit 1068227Copy full SHA for 1068227
Dockerfile
@@ -1,7 +1,17 @@
1
FROM rust:1.65 as builder
2
+
3
+RUN cargo new --bin app
4
WORKDIR /app
5
COPY Cargo.toml Cargo.toml
6
+# Dry running build command to make Docker cache layer
7
+RUN cargo build --release
8
+RUN rm src/*.rs
9
10
COPY src src
11
RUN cargo build --release
12
13
+# Use slim image to place build result
14
+FROM debian:stable-slim
15
+COPY --from=builder ./app/target/release/chatgpt-proxy-server .
16
EXPOSE 3000
-CMD ["./target/release/chatgpt-proxy-server"]
17
+CMD ["./chatgpt-proxy-server"]
0 commit comments