SparkSplat-Viewer / Dockerfile
Jeprary
Initial commit: SparkSplat with proper UTF-8 LFS
1829efb
Raw
History Blame Contribute Delete
512 Bytes
FROM node:20-slim
# Set the working directory in the container
WORKDIR /workspace
# Copy the entire project
COPY . .
# Move into the app directory where package.json is located
WORKDIR /workspace/app
# Install dependencies
RUN npm install
# Expose Hugging Face Space's default port
EXPOSE 7860
# Start the development server (which includes the file upload backend)
# Must bind to 0.0.0.0 to be accessible outside the Docker container
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "7860"]