golem-landing-page/README.md
2021-01-04 20:41:50 +01:00

40 lines
839 B
Markdown

# thegolem.cz - Landing page
## Dev
```bash
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
```
## Docker
Login to golem docker registry
```
docker login registry.thegolem.cz
```
Build the image (use actual version)
```bash
docker build . -t golem/landing-page:1.1.0 -t golem/landing-page:latest
```
Tag the image (use actual version)
```bash
docker tag golem/landing-page:latest registry.thegolem.cz/golem/landing-page:latest
docker tag golem/landing-page:1.1.0 registry.thegolem.cz/golem/landing-page:1.1.0
```
Push the image to registry
```bash
docker push registry.thegolem.cz/golem/landing-page:latest
docker push registry.thegolem.cz/golem/landing-page:1.1.0
```