Browse Source

:green-heart: : update config docker

main
Jean-François GAUTREAU 5 years ago
parent
commit
03e78191e1
  1. 15
      Dockerfile
  2. 10
      docker-compose.yml

15
Dockerfile

@ -0,0 +1,15 @@
FROM node:14.15.4-slim
#étape de build
WORKDIR /app
# install
COPY . .
RUN yarn add node-sass
RUN yarn install
EXPOSE 8080/tcp
EXPOSE 8080/udp
# start app
CMD ["yarn", "serve"]

10
docker-compose.yml

@ -0,0 +1,10 @@
version: '2'
services:
networks:
- web
networks:
# Specifie que le network web est accessible depuis l'exterieur
web:
external: true
Loading…
Cancel
Save