File size: 421 Bytes
39d7fb8
 
 
 
 
48000d3
779892a
 
 
 
39d7fb8
 
779892a
39d7fb8
 
a5cf919
 
 
39d7fb8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:18-alpine
WORKDIR /app
RUN apk add --no-cache git
RUN git clone https://github.com/xiaoY233/Kimi-Free-API.git .
RUN npm install
RUN npm install mime@3.0.0

# Physically write the port configuration into the app's root folder
RUN echo "PORT=7860" > .env

RUN npm run build

# Fix Hugging Face permission errors
RUN mkdir -p /app/logs && chmod -R 777 /app

ENV PORT=7860
EXPOSE 7860

CMD ["node", "dist/index.js"]