Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Docker #12

Open
thebetterjort opened this issue Mar 5, 2019 · 2 comments
Open

[Feature request] Docker #12

thebetterjort opened this issue Mar 5, 2019 · 2 comments

Comments

@thebetterjort
Copy link

I've drank the coolaid and I don't install any devs on my machine anymore. This is an archiac practice. Dockerfiles would be nice, for us who are obnoxiously pure.

@thebetterjort
Copy link
Author

FROM node:8
ENV NODE_ENV development
WORKDIR /home/node/tmp
COPY package.json /home/node/tmp/package.json
RUN npm config set strict-ssl false && NODE_TLS_REJECT_UNAUTHORIZED=0 npm install

@thebetterjort
Copy link
Author

version: "2"
services:
dev:
build: ./
working_dir: /home/node/app
environment:
- NODE_ENV=development
volumes:
- ./:/home/node/app
ports:
- "3000:3000"
command: bash -c "cp -r ../tmp/node_modules . && npm run dev"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant