Use serve instead

This commit is contained in:
Luke Murphy 2020-11-25 09:33:31 +01:00
parent 7828e73113
commit cb3660fdd1
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 8 additions and 10 deletions

View File

@ -1,13 +1,11 @@
FROM node:alpine FROM node:alpine
EXPOSE 8081 EXPOSE 5000
COPY ./docs /app RUN npm i -g serve
COPY . /app
WORKDIR /app WORKDIR /app
RUN apk add --no-cache curl CMD ["npm", "run", "start"]
RUN npm install http-server
CMD ["npm", "start"]

View File

@ -5,7 +5,7 @@ services:
app: app:
image: "decentral1se/biobulkbende.org:latest" image: "decentral1se/biobulkbende.org:latest"
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081"] test: ["CMD", "curl", "-f", "http://localhost:5000"]
interval: 10s interval: 10s
timeout: 10s timeout: 10s
retries: 10 retries: 10
@ -18,7 +18,7 @@ services:
order: start-first order: start-first
labels: labels:
- "traefik.enable=true" - "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.rule=Host(`biobulkbende.org`)"
- "traefik.http.routers.biobulkbende-org.entrypoints=web-secure" - "traefik.http.routers.biobulkbende-org.entrypoints=web-secure"
- "traefik.http.routers.biobulkbende-org.tls.certresolver=production" - "traefik.http.routers.biobulkbende-org.tls.certresolver=production"

View File

@ -5,7 +5,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "http-server -c-1 docs/ -p 8081" "start": "serve docs"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",