kimi-bridge / Dockerfile
21GoRun's picture
Update Dockerfile
779892a verified
Raw History Blame Contribute Delete
421 Bytes
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"]