Add the docker file
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Mary 2023-09-21 17:03:59 +01:00
parent 30005290b8
commit 0a7bbe1a80
2 changed files with 23 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM debian:12-slim
WORKDIR /app
COPY . .
RUN apt-get -y update && apt-get install -y hugo && hugo
FROM busybox
COPY --from=0 /app/public /app
WORKDIR /app
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
build:
hugo -D
npm run index
clean:
rm -rf public
rm -v $(shell find . -iname "*~")
deploy:
hugo
rsync -vlcr --delete-after ./public/* mary@core.sweetandsourcherries.com:/home/mary/deliciousium/public/