You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Cryptid/cryptide_project/Dockerfile

31 lines
374 B

FROM node:14
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
RUN ls build
RUN ls build/static
RUN ls build/static/css
RUN ls build/static/js
EXPOSE 80
#
# Installez express
RUN npm install express
# Copiez le script serveur personnalisé
COPY server.js .
# Commande pour démarrer le serveur personnalisé
CMD ["node", "server.js"]