llm-mixer / Dockerfile
Hansimov's picture
:boom: [Fix] Docker build error, and no longer host static html
f5054e3
raw
history blame
No virus
370 Bytes
FROM node:18-slim
WORKDIR $HOME/app
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/Rob--W/cors-anywhere.git cors-anywhere
WORKDIR $HOME/app/cors-anywhere
RUN npm install
RUN npm install http-server -g
COPY . $HOME/app
WORKDIR $HOME/app
VOLUME /data
ENV PORT=12349
CMD node ./cors-anywhere/server.js &
EXPOSE 12345
CMD http-server -p 12345