File size: 468 Bytes
daa0a2f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Gunakan Node.js base image
FROM node:18-alpine
# Install git untuk cloning repository
RUN apk add --no-cache git
# Set working directory
WORKDIR /app
# Clone repository dari GitHub
RUN git clone https://github.com/siputzx/simpel-cors-proxy.git .
# Install dependencies
RUN npm install
# Expose port (Hugging Face menggunakan port 7860 secara default)
EXPOSE 7860
# Set environment variable untuk port
ENV PORT=7860
# Start the application
CMD ["npm", "start"] |