Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyPrince authored Sep 12, 2024
1 parent 19ea604 commit e897210
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions Dockerfile
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"]

0 comments on commit e897210

Please sign in to comment.