template-app / Dockerfile
archiesarrewood's picture
Upload folder using huggingface_hub
c4c7628 verified
FROM node:20
# Install http-server to serve the static site
RUN npm install -g http-server
# Build the app
WORKDIR /usr/app
COPY ./ /usr/app
RUN npm install
RUN npm run sources && npm run build
# Expose port 7860
EXPOSE 7860
# Serve the static site from the /usr/app/build directory on host 0.0.0.0 and port 7860
CMD ["http-server", "/usr/app/build", "-a", "0.0.0.0", "-p", "7860"]