Ajout des outils de déploiement et dév
This commit is contained in:
parent
c7cf8d67c5
commit
5550e1e29e
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# See https://lipanski.com/posts/smallest-docker-image-static-website
|
||||||
|
FROM busybox:1.36
|
||||||
|
|
||||||
|
RUN adduser -D static
|
||||||
|
USER static
|
||||||
|
WORKDIR /home/static
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Run BusyBox httpd
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
|
7
Makefile
Normal file
7
Makefile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
start:
|
||||||
|
npx live-server . --port=3131
|
||||||
|
|
||||||
|
# In case of certificate error: `docker service update captain-registry --force`
|
||||||
|
# see https://github.com/caprover/caprover/issues/1693
|
||||||
|
deploy:
|
||||||
|
npx caprover deploy -a jeu-laser -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