ryanapz commited on
Commit
2d7bb45
·
verified ·
1 Parent(s): 42a53b9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -1,9 +1,16 @@
1
- FROM justsong/one-api:latest
2
 
3
- ENV PORT=7860
4
- EXPOSE 7860
 
 
 
5
 
6
- ENV GLOBAL_WEB_BASE_URL=http://localhost:7860
7
 
 
 
 
 
8
 
9
- CMD ["/one-api"]
 
1
+ FROM node:20-alpine
2
 
3
+ RUN apk add --no-cache git
4
+
5
+ WORKDIR /app
6
+
7
+ RUN git clone https://github.com/diegosouzapw/OmniRoute.git .
8
 
9
+ RUN npm install
10
 
11
+ RUN npm run build --if-present
12
+
13
+ ENV PORT=7860
14
+ EXPOSE 7860
15
 
16
+ CMD ["npm", "start"]