-
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.
- Loading branch information
1 parent
f5da25d
commit b8de4dc
Showing
1 changed file
with
3 additions
and
13 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,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"] |