mirror of
https://github.com/YuzuZensai/TrollSSH.git
synced 2026-09-13 19:18:59 +00:00
📦 build: run TypeScript directly with Bun, drop the tsc build step
This commit is contained in:
+4
-13
@@ -1,14 +1,4 @@
|
||||
FROM oven/bun:1 AS build
|
||||
WORKDIR /home/bun/app
|
||||
|
||||
COPY package.json bun.lock ./
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
COPY tsconfig.json ./
|
||||
COPY src ./src
|
||||
RUN bun run build
|
||||
|
||||
FROM oven/bun:1-slim
|
||||
FROM oven/bun:1.2-slim
|
||||
WORKDIR /home/bun/app
|
||||
|
||||
RUN apt-get update -y && \
|
||||
@@ -18,6 +8,7 @@ RUN apt-get update -y && \
|
||||
COPY package.json bun.lock ./
|
||||
RUN bun install --frozen-lockfile --production
|
||||
|
||||
COPY --from=build /home/bun/app/dist ./dist
|
||||
COPY tsconfig.json ./
|
||||
COPY src ./src
|
||||
|
||||
CMD ["bun", "dist/index.js"]
|
||||
CMD ["bun", "src/index.ts"]
|
||||
|
||||
Reference in New Issue
Block a user