Update Dockerfile
Browse files- Dockerfile +7 -15
Dockerfile
CHANGED
@@ -1,19 +1,11 @@
|
|
1 |
-
|
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 |
-
|
15 |
-
|
16 |
-
|
17 |
-
COPY
|
|
|
18 |
EXPOSE 3000
|
19 |
-
CMD
|
|
|
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
|