Simple example of react dev container
This commit is contained in:
8
examples/react-app/build.sh
Normal file
8
examples/react-app/build.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/env sh
|
||||
# Build for develop
|
||||
docker build -t react:develop --target develop .
|
||||
# Build for production
|
||||
docker build -t react .
|
||||
slim build --target react:latest --tag react:slim --preserve-path /usr/share/nginx/html/assets
|
||||
docker images react
|
||||
docker run -P --rm --name react react:slim
|
Reference in New Issue
Block a user