temp-cloud / Dockerfile
fullpwerr's picture
first
72a3e34
raw
history blame
462 Bytes
FROM node:18-bullseye
# Set working directory
WORKDIR /app
# Copy package.json & install dependencies
COPY package*.json ./
RUN npm install --omit=dev
# Install ffmpeg (kalau masih butuh)
RUN apt update && apt install -y ffmpeg && rm -rf /var/lib/apt/lists/*
# Copy semua file
COPY . .
# Buat folder "files" & atur permission dengan benar
RUN mkdir -p /app/files && chmod 777 /app/files
# Expose port API
EXPOSE 7860
# Start aplikasi
CMD ["npm", "start"]