feat: déploiement sur caprover
This commit is contained in:
parent
a809e49eff
commit
4cde37b521
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# See https://lipanski.com/posts/smallest-docker-image-static-website
|
||||||
|
FROM busybox:1.36
|
||||||
|
|
||||||
|
RUN adduser -D static
|
||||||
|
USER static
|
||||||
|
WORKDIR /home/static
|
||||||
|
|
||||||
|
COPY favicon.ico .
|
||||||
|
COPY index.html .
|
||||||
|
|
||||||
|
# Run BusyBox httpd
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
|
||||||
2
Makefile
2
Makefile
@ -2,4 +2,4 @@ dev:
|
|||||||
npx serve .
|
npx serve .
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
rsync -avzL --exclude Makefile --exclude .git . celine-pierrot@ssh-celine-pierrot.ethersys.host:www.pierre-martin.fr
|
npx caprover deploy -a pierre-martin -b main --default
|
||||||
4
captain-definition
Normal file
4
captain-definition
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 2,
|
||||||
|
"dockerfilePath": "./Dockerfile"
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user