jammss commited on
Commit
f6952a4
1 Parent(s): 2013feb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -15
Dockerfile CHANGED
@@ -1,19 +1,11 @@
1
- FROM rust:1.65 as builder
2
  RUN apt-get update && apt-get install -y git
3
  RUN git clone https://github.com/fuergaosi233/chatgpt-proxy-server.git
4
- RUN cargo new --bin app
5
- WORKDIR /app
6
- COPY Cargo.toml Cargo.toml
7
- # Dry running build command to make Docker cache layer
8
- RUN cargo build --release
9
- RUN rm src/*.rs
10
-
11
- COPY src src
12
- RUN cargo build --release
13
 
14
- # Use slim image to place build result
15
- FROM debian:stable-slim
16
- RUN apt-get update && apt-get install -y ca-certificates
17
- COPY --from=builder ./app/target/release/chatgpt-proxy-server .
 
18
  EXPOSE 3000
19
- CMD ["./chatgpt-proxy-server"]
 
1
+
2
  RUN apt-get update && apt-get install -y git
3
  RUN git clone https://github.com/fuergaosi233/chatgpt-proxy-server.git
 
 
 
 
 
 
 
 
 
4
 
5
+ FROM node:alpine
6
+ RUN mkdir -p /usr/src
7
+ WORKDIR /usr/src
8
+ COPY . /usr/src
9
+ RUN npm install
10
  EXPOSE 3000
11
+ CMD npm run start -- --port 3000 --host 0.0.0.0