chat-ui / Dockerfile
coyotte508's picture
coyotte508 HF staff
⚡️ Improve docker incremental build time (#142)
ff2db2e unverified
raw
history blame
411 Bytes
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM node:19
RUN npm install -g pm2
WORKDIR /app
COPY --link --chown=1000 package.json package-lock.json ./
RUN npm i
COPY --link --chown=1000 . .
RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local npm run build
CMD pm2 start build/index.js -i $CPU_CORES --no-daemon