testingx44's picture
Create Dock
7c598a7 verified
Raw History Blame Contribute Delete
457 Bytes
# Use an official Node.js image
FROM node:16
# Set the working directory
WORKDIR /app
# Clone your GitHub repository
RUN git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY.git .
# Install dependencies (if using Node.js or similar frameworks)
RUN npm install
# Build your project (if necessary)
RUN npm run build
# Copy the build output to a directory served by Hugging Face
COPY /build /public
# Serve the app
EXPOSE 8000
CMD ["npm", "start"]