Improve Dockerfile and README
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8ae8f821f0
commit
a6c4ddf205
|
@ -6,4 +6,4 @@ WORKDIR /var/www/html
|
||||||
VOLUME /var/www/html
|
VOLUME /var/www/html
|
||||||
EXPOSE 1313
|
EXPOSE 1313
|
||||||
|
|
||||||
ENTRYPOINT ["hugo", "serve", "--bind", "0.0.0.0", "--watch"]
|
ENTRYPOINT ["hugo", "serve", "--bind", "0.0.0.0", "--watch", "--disableFastRender"]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## Docker for local development and testing
|
## Docker for local development and testing
|
||||||
|
|
||||||
1. Build Docker image: `docker build -t hugo .`
|
1. Build Docker image: `docker build -t hugo .`
|
||||||
2. Run container: `docker run --rm -v $PWD:/var/www/html -p 8080:1313 hugo`
|
2. Run container: `docker run --rm -v $PWD:/var/www/html -p 1313:1313 hugo`
|
||||||
|
|
Loading…
Reference in New Issue