dockerify the dev environment and add automation

This commit is contained in:
Elias Ahokas
2025-09-25 22:23:17 +03:00
parent c0b8df72a8
commit 92dc7ed4cb
3 changed files with 23 additions and 0 deletions

7
Dockerfile Normal file
View 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
View 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
View File

@@ -0,0 +1,9 @@
services:
hugo-dev:
build: .
ports:
- "1313:1313"
volumes:
- .:/app
container_name: hugo-dev
restart: unless-stopped