Mise à jour de 'cryptide_project/Dockerfile'
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
31a397e6da
commit
985fe7bf4e
@ -1,19 +1,20 @@
|
||||
# Fetching the latest node image on alpine linux
|
||||
FROM node:alpine AS development
|
||||
# Utilisez une image Node.js comme base
|
||||
FROM node:14-alpine
|
||||
|
||||
# Declaring env
|
||||
ENV NODE_ENV development
|
||||
# Définissez le répertoire de travail dans le conteneur
|
||||
WORKDIR /app
|
||||
|
||||
# Setting up the work directory
|
||||
WORKDIR /react-app
|
||||
|
||||
# Installing dependencies
|
||||
COPY ./package*.json /react-app
|
||||
# Copiez le fichier package.json et le fichier package-lock.json dans le répertoire de travail
|
||||
COPY package*.json ./
|
||||
|
||||
# Installez les dépendances
|
||||
RUN npm install
|
||||
|
||||
# Copying all the files in our project
|
||||
# Copiez tous les fichiers de l'application dans le répertoire de travail
|
||||
COPY . .
|
||||
|
||||
# Starting our application
|
||||
CMD ["npm","start]
|
||||
# Exposez le port 8080
|
||||
EXPOSE 8080
|
||||
|
||||
# Commande pour exécuter l'application lorsque le conteneur démarre
|
||||
CMD ["npm", "start"]
|
||||
|
Loading…
Reference in new issue