-
Notifications
You must be signed in to change notification settings - Fork 24
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
8 changed files
with
24 additions
and
9,346 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,16 +1,13 @@ | ||
FROM node:alpine AS build | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
FROM oven/bun AS build | ||
COPY . /app | ||
WORKDIR /app | ||
RUN pnpm install --frozen-lockfile | ||
RUN pnpm run build:client | ||
RUN pnpm run build:server | ||
RUN bun install | ||
RUN bun run build:client | ||
RUN bun run build:server | ||
|
||
FROM ghcr.io/tgdrive/node | ||
FROM oven/bun:distroless | ||
WORKDIR /app | ||
COPY --from=build /app/build ./build | ||
ENV NODE_ENV=production | ||
EXPOSE 8080 | ||
ENTRYPOINT [ "node", "build/server/index.mjs" ] | ||
ENTRYPOINT [ "bun", "run", "build/server/index.js" ] |
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
Oops, something went wrong.