-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
FROM oven/bun:1.0.3@sha256:4b3393b507e40a1a6a4b8d3c47c59a5a733a9f96eb0f61b397d0789ef7660e72 as base | ||
FROM oven/bun:1.0.4-alpine@sha256:07343bd778e11bad4c6b434737e4cafc843cefcf69523b3868c4443e564f38b9 as base | ||
LABEL maintainer "DeadNews <aurczpbgr@mozmail.com>" | ||
|
||
WORKDIR /app | ||
|
||
FROM base as runtime | ||
|
||
ENV NODE_ENV=production | ||
ENV NODE_PORT=3000 \ | ||
NODE_HOSTNAME=0.0.0.0 \ | ||
NODE_ENV=production | ||
|
||
COPY package.json bun.lockb ./ | ||
COPY src/ ./src/ | ||
RUN bun install --production --frozen-lockfile | ||
|
||
USER bun:bun | ||
EXPOSE 1271 | ||
HEALTHCHECK --interval=60s --timeout=3s CMD curl --fail http://127.0.0.1:1271/health || exit 1 | ||
EXPOSE ${NODE_PORT} | ||
HEALTHCHECK --interval=60s --timeout=3s \ | ||
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${NODE_PORT}/health || exit 1 | ||
|
||
CMD ["bun", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters