Mise à jour de 'cryptide_project/Dockerfile'
continuous-integration/drone/push Build is passing Details

pull/96/head^2
Thomas CHAZOT 1 year ago
parent 31a397e6da
commit 985fe7bf4e

@ -1,19 +1,20 @@
# Fetching the latest node image on alpine linux # Utilisez une image Node.js comme base
FROM node:alpine AS development FROM node:14-alpine
# Declaring env # Définissez le répertoire de travail dans le conteneur
ENV NODE_ENV development WORKDIR /app
# Setting up the work directory # Copiez le fichier package.json et le fichier package-lock.json dans le répertoire de travail
WORKDIR /react-app COPY package*.json ./
# Installing dependencies
COPY ./package*.json /react-app
# Installez les dépendances
RUN npm install RUN npm install
# Copying all the files in our project # Copiez tous les fichiers de l'application dans le répertoire de travail
COPY . . COPY . .
# Starting our application # Exposez le port 8080
CMD ["npm","start] EXPOSE 8080
# Commande pour exécuter l'application lorsque le conteneur démarre
CMD ["npm", "start"]

Loading…
Cancel
Save