multimodalart/remote-encoder-reverse-proxy
0
1FROM node:18-slim2 3# The node:18-slim image already has a user with UID 1000 (node)4# We'll use that user instead of creating a new one5USER node6 7# Set home to the node user's home directory8ENV HOME=/home/node \9 PATH=/home/node/.local/bin:$PATH10 11# Set the working directory12WORKDIR $HOME/app13 14# Copy package files with proper ownership15COPY --chown=node package*.json ./16 17# Install dependencies18RUN npm install19 20# Copy application files with proper ownership21COPY --chown=node proxy.js ./22COPY --chown=node README.md ./23 24# Expose port 7860 (HF Spaces default)25EXPOSE 786026 27# Start the application28CMD ["node", "proxy.js"]