mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-12-25 04:35:24 +00:00
Use serve instead
This commit is contained in:
parent
7828e73113
commit
cb3660fdd1
12
Dockerfile
12
Dockerfile
@ -1,13 +1,11 @@
|
||||
FROM node:alpine
|
||||
|
||||
EXPOSE 8081
|
||||
EXPOSE 5000
|
||||
|
||||
COPY ./docs /app
|
||||
RUN npm i -g serve
|
||||
|
||||
COPY . /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
RUN npm install http-server
|
||||
|
||||
CMD ["npm", "start"]
|
||||
CMD ["npm", "run", "start"]
|
||||
|
@ -5,7 +5,7 @@ services:
|
||||
app:
|
||||
image: "decentral1se/biobulkbende.org:latest"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8081"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:5000"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
@ -18,7 +18,7 @@ services:
|
||||
order: start-first
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.biobulkbende-org.loadbalancer.server.port=8081"
|
||||
- "traefik.http.services.biobulkbende-org.loadbalancer.server.port=5000"
|
||||
- "traefik.http.routers.biobulkbende-org.rule=Host(`biobulkbende.org`)"
|
||||
- "traefik.http.routers.biobulkbende-org.entrypoints=web-secure"
|
||||
- "traefik.http.routers.biobulkbende-org.tls.certresolver=production"
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "http-server -c-1 docs/ -p 8081"
|
||||
"start": "serve docs"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
|
Loading…
Reference in New Issue
Block a user