Skip to content

Commit 686be15

Browse files
committed
restore the mysteriously deleted uptime dockerfile
1 parent b28953b commit 686be15

File tree

2 files changed

+36
-66
lines changed

2 files changed

+36
-66
lines changed

apps/dashboard/app/(main)/websites/[id]/_context/website-context.tsx

Lines changed: 0 additions & 66 deletions
This file was deleted.

uptime.Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM oven/bun:1.3.4-slim AS build
2+
3+
WORKDIR /app
4+
5+
COPY package.json package.json
6+
COPY apps/uptime/package.json ./apps/uptime/package.json
7+
COPY packages/*/package.json ./packages/
8+
9+
COPY packages/ ./packages/
10+
11+
RUN bun install --ignore-scripts
12+
13+
COPY apps/uptime/src ./apps/uptime/src
14+
15+
ENV NODE_ENV=production
16+
17+
RUN bun build \
18+
--compile \
19+
--minify \
20+
--target bun \
21+
--outfile server \
22+
--sourcemap \
23+
--bytecode \
24+
./apps/uptime/src/index.ts
25+
26+
FROM gcr.io/distroless/base
27+
28+
WORKDIR /app
29+
30+
COPY --from=build /app/server server
31+
32+
ENV NODE_ENV=production
33+
34+
CMD ["./server"]
35+
36+
EXPOSE 4000

0 commit comments

Comments
 (0)