version: '3' services: web-frontend: build: . image: git.sahkoinsinoorikilta.fi:4567/vtmk/web2.0-frontend # Before you run this file for the first time, make sure # you remove node_modules/ folders in your host machine command: ["bash", "-c", "if test -d node_modules; then echo node_modules_exists; else cp -a /tmp/node_modules /code; fi && cd /code && npm install && npm run start-prod"] ports: - "8080:3000"