Spaces:
Sleeping
Sleeping
File size: 386 Bytes
badff6c 11255df badff6c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Secret Swap – Docker image
# Uses lightweight Alpine Node base
FROM node:20-alpine
# Create app directory
WORKDIR /app
# Install production dependencies
COPY package*.json ./
RUN npm install --omit=dev
# Copy source
COPY . .
# Hugging Face exposes its own $PORT; default to 7860 for local runs
ENV PORT=${PORT:-7860}
EXPOSE 7860
# Launch the server
CMD ["node", "server.js"] |