fullpwerr commited on
Commit
a171f6c
·
1 Parent(s): 1d43f10
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. app.js +2 -2
  3. {tmp → files}/files.json +0 -0
Dockerfile CHANGED
@@ -14,7 +14,7 @@ RUN apt update && apt install -y ffmpeg && rm -rf /var/lib/apt/lists/*
14
  COPY . .
15
 
16
  # Buat folder "files" & atur permission dengan benar
17
- RUN mkdir -p /app/files && chmod 666 /app/tmp && chmod 777 /app/files
18
 
19
  # Expose port API
20
  EXPOSE 7860
 
14
  COPY . .
15
 
16
  # Buat folder "files" & atur permission dengan benar
17
+ RUN kmdir -p /app/files && chmod 777 /app/files
18
 
19
  # Expose port API
20
  EXPOSE 7860
app.js CHANGED
@@ -9,7 +9,7 @@ const { execSync } = require("child_process");
9
 
10
  const FILE_DIR = path.join(__dirname, "files");
11
  const EXPIRATION_TIME = 24 * 60 * 60 * 1000; // 24 jam dalam milidetik
12
- const META_FILE = path.join(__dirname, "/tmp", "files.json");
13
 
14
  // Load metadata file (kalau ada)
15
  let fileData = {};
@@ -197,4 +197,4 @@ setInterval(() => {
197
 
198
  app.listen(port, () => {
199
  console.log("Listening on http://localhost:" + port);
200
- });
 
9
 
10
  const FILE_DIR = path.join(__dirname, "files");
11
  const EXPIRATION_TIME = 24 * 60 * 60 * 1000; // 24 jam dalam milidetik
12
+ const META_FILE = path.join(__dirname, "/files", "files.json");
13
 
14
  // Load metadata file (kalau ada)
15
  let fileData = {};
 
197
 
198
  app.listen(port, () => {
199
  console.log("Listening on http://localhost:" + port);
200
+ });
{tmp → files}/files.json RENAMED
File without changes