SecretSwap / Dockerfile
mlmPenguin's picture
Update Dockerfile
11255df verified
raw
history blame contribute delete
386 Bytes
# 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"]