dockerify the dev environment and add automation
This commit is contained in:
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM hugomods/hugo:exts
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 1313
|
||||
|
||||
CMD ["hugo", "server", "---bind=0.0.0.0", "--baseURL=https://localhost:1313", "-D", "--disableFastRender"]
|
7
deploy.sh
Normal file
7
deploy.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker-compose exec hugo-dev hugo --minify
|
||||
|
||||
rsync -av --delete public/ sirian@172.16.0.1:/home/sirian/www/portfolio
|
||||
|
||||
echo "Site deployed!"
|
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
hugo-dev:
|
||||
build: .
|
||||
ports:
|
||||
- "1313:1313"
|
||||
volumes:
|
||||
- .:/app
|
||||
container_name: hugo-dev
|
||||
restart: unless-stopped
|
Reference in New Issue
Block a user