Docker image for frontend javascript development using yarn
This image is for development environment for frontend javascript projects using yarn instead of npm. Just share your app dir on running the container and voila.
This image is available directly on the official Docker registry.
- NodeJS
- yarn
- Git
- Ruby
- compass
This image is meant to be used in a development environment.
I am using it with webpack.
devServer configuration in webpack.config.js file :
devServer: {
contentBase: './src',
compress: true,
port: 9000,
host: "0.0.0.0"
}
scripts in package.json file
"scripts": {
"start": "webpack-dev-server"
}
cdin your app dirdocker run --rm -it -v $PWD:/home/app -p 9000:9000 radwa/frontend-yarn-dev- OPTIONAL STEP (in case you used my webpack configuration) :
yarn install && yarn run start