# 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 | |
WORKDIR /app | |
COPY . . | |
RUN npm i | |
RUN npm run build | |
ENV PORT=7860 | |
CMD ["node", "build"] | |
# 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 | |
WORKDIR /app | |
COPY . . | |
RUN npm i | |
RUN npm run build | |
ENV PORT=7860 | |
CMD ["node", "build"] | |