Spaces:
Running
Running
File size: 503 Bytes
9887938 efead7f 9887938 c95a2c9 9887938 a3ba1f6 9887938 a3ba1f6 9887938 9de23f8 9887938 7e33654 9887938 9de23f8 9887938 5b45fe8 c95a2c9 9887938 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# Use Alpine Node.js image
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Install git (needed to clone repo)
RUN apk add --no-cache git
# Clone your Vite.js app from GitHub
RUN git clone https://github.com/viratxd/prompt-glow-lab-00.git ./
# Install dependencies
RUN npm install
# Build Vite app
RUN npm run build
# Install a small static server to serve `dist/`
RUN npm install -g serve
# Expose port
EXPOSE 7860
# Serve the built Vite app
CMD ["serve", "-s", "dist", "-l", "7860"]
|