Fix hostname binding and add healthcheck to docker

This commit is contained in:
Hydroxycarbamide 2024-10-20 17:39:24 +02:00
parent 673c344ff4
commit 09bc9c6b42
4 changed files with 9 additions and 10 deletions

View file

@ -1,11 +1,13 @@
FROM oven/bun:alpine
ENV HOSTNAME localhost
WORKDIR /startpage
COPY assets ./assets
COPY src ./src
COPY package.json ./
EXPOSE 8080/tcp
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD wget --spider -q http://0.0.0.0/healthcheck || exit 1
ENTRYPOINT [ "bun", "run", "./src/index.ts" ]
ENTRYPOINT [ "bun", "start" ]