Skip to content

Commit

Permalink
test docker azure
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinhoareau committed Mar 24, 2024
1 parent f5da25d commit b8de4dc
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
# Définir l'image de base
FROM node:14
FROM node:18

# Créer le répertoire de l'application
WORKDIR /usr/src/app

# Installer les dépendances de l'application
# Le caractère joker est utilisé pour s'assurer que les fichiers package.json ET package-lock.json sont copiés
# où disponible (npm@5+)
COPY packages/client ./
COPY . .

RUN npm install
# Si tu construis ton code pour la production
# RUN npm ci --only=production

# Copier les fichiers et répertoires de l'application dans le conteneur
COPY . .

# Exposer le port sur lequel l'application va tourner
EXPOSE 8080

# Commande pour démarrer l'application
CMD [ "vite"]
CMD ["npm", "run", "start:client"]

0 comments on commit b8de4dc

Please sign in to comment.