mirror of
https://github.com/lleene/dockerconfig.git
synced 2025-01-22 21:02:22 +01:00
WIP
This commit is contained in:
parent
5d8bfaf041
commit
edbeb46280
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@ -0,0 +1,4 @@
|
||||
FROM klakegg/hugo:onbuild AS hugo
|
||||
|
||||
FROM nginx
|
||||
COPY --from=hugo ./target /usr/share/nginx/html
|
17
docker-compose.yaml
Normal file
17
docker-compose.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
version: "3.5"
|
||||
|
||||
services:
|
||||
blog:
|
||||
container_name: personal-blog
|
||||
build:
|
||||
context: "."
|
||||
args:
|
||||
HUGO_ENV_ARG: "production"
|
||||
HUGO_CMD: "-s /src/personal-page"
|
||||
|
||||
client:
|
||||
image: nginx
|
||||
ports:
|
||||
- 8000:80
|
||||
volumes:
|
||||
- ./src:/usr/share/nginx/html
|
Loading…
x
Reference in New Issue
Block a user