forked from unitoo/website
better Dockerfile
This commit is contained in:
parent
d6671f129a
commit
775d070f3b
2 changed files with 10 additions and 0 deletions
3
Dockerfile
Normal file
3
Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
FROM ghcr.io/static-web-server/static-web-server:2-alpine
|
||||||
|
WORKDIR /
|
||||||
|
COPY _site /public
|
|
@ -17,3 +17,10 @@ New Unitoo website based on Jekyll
|
||||||
|
|
||||||
3. Build Jekyll
|
3. Build Jekyll
|
||||||
`JEKYLL_BUILD=production bundle exec jekyll build`
|
`JEKYLL_BUILD=production bundle exec jekyll build`
|
||||||
|
|
||||||
|
|
||||||
|
## Build image
|
||||||
|
|
||||||
|
1. `docker build -t unitoo/website .`
|
||||||
|
|
||||||
|
2. `docker push unitoo/website`
|
||||||
|
|
Loading…
Reference in a new issue