Last active
June 8, 2020 12:26
-
-
Save SumonMSelim/384cfd334c1ad08e517e991ae618b979 to your computer and use it in GitHub Desktop.
docker with npm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
node: | |
build: | |
context: ./.docker/node | |
dockerfile: ./Dockerfile | |
command: bash -c "npm install && npm start" | |
container_name: app | |
ports: | |
- 3001:3001 | |
- 3000:3000 | |
volumes: | |
- ./:/home/app | |
environment: | |
PORT: 80 | |
NODE_ENV: development | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment