react-boilerplate icon indicating copy to clipboard operation
react-boilerplate copied to clipboard

Docker support

Open apemberton opened this issue 7 years ago • 5 comments

Hi: wondered if the project could/should have a Dockerfile by default? Working on one now but just throwing out there in case anyone else has considered.

apemberton avatar Jan 24 '18 01:01 apemberton

That'd be great - I don't have much experience with Docker, but I'd gladly accept a PR.

mikechabot avatar Jan 28 '18 06:01 mikechabot

Cool - do you happen to target a specific node version for the boilerplate? Already have a Dockerfile I can PR but would be best to pin to a specific node version.

On Sun, Jan 28, 2018 at 1:46 AM Mike [email protected] wrote:

That'd be great - I don't much experience with Docker, but I'd gladly accept a PR.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mikechabot/react-boilerplate/issues/13#issuecomment-361042377, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFRp7X05NqgqUEfxEF3LqPtkslx-HUiks5tPBfXgaJpZM4RqmVu .

apemberton avatar Jan 28 '18 06:01 apemberton

The boilerplate does utilize some ES6 features so targeting >= 6 would be ideal (http://node.green). That said, I've been out of the node loop for a bit (yikes!), and it seems we're up to 9.x and soon to be 10.x in Q2 of this year (https://github.com/nodejs/Release), so I'm open to suggestions wrt whether Docker would benefit from any of the features/perf enhancements from these later versions.

mikechabot avatar Jan 28 '18 07:01 mikechabot

I have sample here. https://gist.github.com/baoduy/9367482e52f192fdaa3d9e489eebed51 Hope it helps.

baoduy avatar Jul 02 '18 10:07 baoduy

@baoduy Thanks for the gist. This looks specific to Linux, which is fine, but would a separate docker file be needed for a Windows environment? Please forgive my ignorance of Docker.

mikechabot avatar Jul 02 '18 17:07 mikechabot