module / Dockerfile
fomext's picture
Update Dockerfile
528ef6e verified
Raw
History Blame
369 Bytes
FROM node:20-alpine
WORKDIR /app
RUN apk add --no-cache git
# Clone specific version
RUN git clone --depth 1 --branch v1.11.2 https://github.com/ItzCrazyKns/Vane.git .
# Install deps
RUN npm install
# Build Next.js app (CRITICAL)
RUN npm run build
# Spaces requirements
ENV PORT=7860
ENV HOSTNAME=0.0.0.0
ENV NODE_ENV=production
EXPOSE 7860
CMD ["npm", "start"]