Spaces:
Sleeping
Sleeping
File size: 624 Bytes
1b7eca3 f4e51ac 64eb1f6 9e004f6 7a882a0 9e004f6 1b7eca3 f4e51ac 1b7eca3 f4e51ac 1b7eca3 f4e51ac 1b7eca3 f4e51ac 1b7eca3 f4e51ac 999b854 f4e51ac 999b854 |
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 33 |
# Use Node.js 18 as the base image (compatible with Next.js 15)
FROM node:18-slim
# Install required system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
ARG HF_TOKEN
ENV API_TOKEN=$HF_TOKEN
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application
COPY . .
# Build the Next.js application
# Note: We don't use turbopack for production builds
RUN npm run build
# Expose the port the app runs on
EXPOSE 3000
# Start the application
CMD ["npm", "start"] |