initial add of basic nodejs app, Dockerfile and CloudronManifest.json
This commit is contained in:
21
README.md
Normal file
21
README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# web-demo
|
||||
|
||||
A docker container and Cloudron app definition example.
|
||||
|
||||
## To run locally
|
||||
```
|
||||
docker build -t web-demo .
|
||||
docker run -p 3000:80 web-demo
|
||||
```
|
||||
|
||||
## To build multi-arch image for deployment
|
||||
|
||||
```
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t container-registry.cosocial.info/web-demo -t container-registry.cosocial.info/web-demo:<version> --push .
|
||||
```
|
||||
|
||||
### if it doesn't actually push, run this to push "for real"
|
||||
```
|
||||
docker push container-registry.cosocial.info/web-demo
|
||||
docker push container-registry.cosocial.info/web-demo:<version>
|
||||
```
|
||||
Reference in New Issue
Block a user