jeff86 commited on
Commit
5e2dad9
·
verified ·
1 Parent(s): 635e770

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -2
Dockerfile CHANGED
@@ -1,3 +1,27 @@
1
- FROM vinlic/kimi-free-api:latest
2
 
3
- RUN chmod 777 -R /app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:lts AS BUILD_IMAGE
2
 
3
+ WORKDIR /app
4
+
5
+ RUN git clone https://github.com/dark2star/kimi-free-api.git
6
+
7
+ RUN chmod 777 /app
8
+ RUN mv ./kimi-free-api/* /app
9
+ RUN ls /app
10
+
11
+ RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
12
+
13
+ FROM node:lts-alpine
14
+
15
+ COPY --from=BUILD_IMAGE /app/configs /app/configs
16
+ COPY --from=BUILD_IMAGE /app/package.json /app/package.json
17
+ COPY --from=BUILD_IMAGE /app/dist /app/dist
18
+ COPY --from=BUILD_IMAGE /app/public /app/public
19
+ COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
20
+
21
+ WORKDIR /app
22
+ RUN chmod 777 /app
23
+
24
+ ENV TZ=Asia/Shanghai
25
+ EXPOSE 8000
26
+
27
+ CMD ["npm", "start"]