-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19ea604
commit e897210
Showing
1 changed file
with
6 additions
and
22 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,23 +1,7 @@ | ||
# Utiliser une image Node.js officielle comme image de base | ||
FROM node:20 | ||
|
||
# Créer un répertoire pour l'application | ||
WORKDIR /app | ||
|
||
# Copier package.json et package-lock.json (s'ils existent) | ||
COPY package*.json ./ | ||
|
||
# Installer les dépendances | ||
FROM quay.io/sampandey001/secktor | ||
RUN git clone https://github.com/CrazyPrince/CRAZY-MD-v2 /root/CrazyPrince | ||
WORKDIR /root/CrazyPrince/ | ||
RUN npm install npm@latest | ||
RUN npm install | ||
|
||
# Copier le reste des fichiers de l'application | ||
COPY . . | ||
|
||
# Construire le projet si nécessaire (ajouter cette étape si vous avez un script de build) | ||
# RUN npm run build | ||
|
||
# Exposer le port sur lequel l'application va écouter | ||
EXPOSE 3000 | ||
|
||
# Définir la commande de démarrage | ||
CMD ["pm2", "start", "lib/client.js", "--name", "crazy", "--max-memory-restart", "490M"] | ||
EXPOSE 8000 | ||
CMD ["npm", "start"] |