Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files8 unmodified lines91011121213141516171819201621222324252622272829303132253334358 unmodified lines
ENV API_TOKEN=$HF_TOKEN
# Set working directory# Create app directory and set permissionsWORKDIR /app
# Create a non-root userRUN addgroup --system --gid 1001 nodejs && \ adduser --system --uid 1001 nextjs && \ chown -R nextjs:nodejs /app
# Copy package filesCOPY package*.json ./COPY --chown=nextjs:nodejs package*.json ./
# Install dependenciesRUN npm install
# Copy the rest of the applicationCOPY . .COPY --chown=nextjs:nodejs . .
# Switch to non-root userUSER nextjs
# Build the Next.js application# Note: We don't use turbopack for production buildsRUN npm run build
# Expose the port the app runs onDockerfile+11-4