forked from ShirokamiRyzen/Nao-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ShirokamiRyzen:main' into main
- Loading branch information
Showing
62 changed files
with
462 additions
and
872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
FROM node:21 | ||
FROM node:18 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
ffmpeg \ | ||
imagemagick \ | ||
webp && \ | ||
apt-get upgrade -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
# Set working directory | ||
WORKDIR /usr/src/app | ||
|
||
COPY package*.json ./ | ||
# Copy package files and install dependencies | ||
COPY package.json ./ | ||
RUN npm install | ||
|
||
# Install dependensi Node.js | ||
RUN npm install --prefer-offline --no-audit --progress=false | ||
# Install system dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y ffmpeg imagemagick webp && \ | ||
apt-get upgrade -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy semua file proyek ke dalam container | ||
# Copy the rest of the application files | ||
COPY . . | ||
|
||
# Expose port 3000 | ||
EXPOSE 5100 | ||
# Expose the required port | ||
EXPOSE 3000 | ||
|
||
# Command untuk menjalankan aplikasi | ||
CMD ["node", "index.js"] | ||
# Command to run the application | ||
CMD ["node", "index.js"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
version: '3.8' | ||
|
||
version: "3.9" | ||
services: | ||
app: | ||
container_name: nao-bot | ||
web: | ||
build: . | ||
ports: | ||
- "5100:5100" | ||
- "8000:5000" | ||
volumes: | ||
- .:/app | ||
- ./sessions:/app/sessions #NOTE: Sebelum mount silahkan buat folder 'sessions' dahulu | ||
- /app/node_modules | ||
- /database.json:/app/database.json | ||
environment: | ||
NODE_ENV: production | ||
command: "node index.js" | ||
restart: unless-stopped | ||
- .:/code | ||
- logvolume01:/var/log | ||
links: | ||
- redis | ||
redis: | ||
image: redis | ||
volumes: | ||
logvolume01: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.