CoolFace
Apppublic

fullstuckdev/sql-agent

sourceHugging Facemitupdated 2y agoView on Hugging Face
1likes
Dockerfile35 linesDownload Raw Back to root
1FROM node:18-slim2 3# Install required system dependencies4RUN apt-get update && apt-get install -y \5    build-essential \6    && rm -rf /var/lib/apt/lists/*7 8# Change node user ID to match host user ID9RUN usermod -u 1000 node10 11ARG HF_TOKEN12ENV API_TOKEN=$HF_TOKEN13 14# Set working directory and ownership15WORKDIR /app16RUN chown -R node:node /app17 18# Switch to node user19USER node20 21# Copy package files22COPY --chown=node:node package*.json ./23 24# Install dependencies25RUN npm install26 27# Copy the rest of the application28COPY --chown=node:node . .29 30# Build the Next.js application31RUN npm run build32 33EXPOSE 300134 35CMD ["npm", "start"]