Mnsory/pro-team-api
0
1# Use a lightweight Node.js image2FROM node:18-slim3 4# The 'node' user already exists with UID 1000 in this image5# We will just set the working directory and permissions6WORKDIR /home/node/app7 8# Copy dependency files with correct ownership9COPY --chown=node:node package*.json ./10 11# Install dependencies as the 'node' user12RUN npm install --production13 14# Copy the rest of the application code15COPY --chown=node:node . .16 17# Switch to the 'node' user18USER node19 20# Expose port 7860 (Hugging Face default)21EXPOSE 786022 23# Start the application24ENV PORT=786025CMD [ "node", "index.js" ]26 