fix console.log, add crappy AI dockerfile
This commit is contained in:
parent
f554c7fad8
commit
040006802b
3 changed files with 37 additions and 1 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
FROM oven/bun:alpine AS deps
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lock* ./
|
||||
RUN bun install --production
|
||||
|
||||
FROM oven/bun:alpine
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lock* ./
|
||||
RUN bun install --production
|
||||
|
||||
COPY --from=deps /app/node_modules/geoip-lite/data ./node_modules/geoip-lite/data
|
||||
|
||||
COPY src ./src
|
||||
COPY tsconfig.json ./
|
||||
|
||||
ENV NODE_ENV=production \
|
||||
PORT=8080
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
|
||||
CMD wget -qO- http://localhost:${PORT}/metrics >/dev/null || exit 1
|
||||
|
||||
CMD ["bun", "run", "src/server.ts"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue