File size: 682 Bytes
6f0655f 073aa17 6f0655f |
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 28 29 30 31 32 |
FROM node:18-slim
# Install system deps required by hyparquet (Arrow) and ffmpeg for video metadata
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
wget \
ca-certificates \
ffmpeg \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install dependencies first (better layer caching)
COPY package.json package-lock.json ./
RUN npm ci
# Copy application source
COPY . .
# Environment configuration for our dataset + Hugging Face Space port
ENV PORT=7860
ENV REPO_ID="DynamicIntelligence/humanoid-robots-training-dataset"
# Build the Next.js app
RUN npm run build
EXPOSE 7860
CMD ["npm", "start"]
|