temp-cloud / Dockerfile
fullpwerr's picture
update CRUD
5fdcbed
raw
history blame contribute delete
518 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 -R 777 /app/files
RUN touch /app/list.json && chmod 666 /app/list.json
# Expose port API
EXPOSE 7860
# Start aplikasi
CMD ["npm", "start"]