bug / Dockerfile
FarelDeveloper's picture
Create Dockerfile
c947df0 verified
Raw
History Blame Contribute Delete
311 Bytes
FROM node:18-bullseye
# Set working directory
WORKDIR /app
# Copy package files dulu (biar cache efisien)
COPY package*.json ./
# Install dependencies
RUN npm install --production
# Copy semua file project
COPY . .
# Set port HuggingFace Spaces
ENV PORT=7860
EXPOSE 7860
# Run app
CMD ["node", "index.js"]