This commit is contained in:
parent
5babdb1ef4
commit
136703f46d
2 changed files with 10 additions and 1 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
FROM hugomods/hugo:latest AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN cd src && hugo build
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
COPY --from=builder /app/src/public /usr/share/nginx/html
|
||||||
|
|
@ -26,5 +26,5 @@ where `<platform>` must be replaced by `windows`, `linux`, or `macos`.
|
||||||
```
|
```
|
||||||
cd src
|
cd src
|
||||||
hugo server --disableFastRender --ignoreCache
|
hugo server --disableFastRender --ignoreCache
|
||||||
hgo build
|
hugo build
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue