File size: 457 Bytes
7c598a7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # 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"]
|