-
Notifications
You must be signed in to change notification settings - Fork 2
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
14 changed files
with
63 additions
and
40 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,27 +1,36 @@ | ||
FROM oven/bun:1.0.20 as base | ||
FROM oven/bun:1.1.21 as build | ||
|
||
WORKDIR /app | ||
|
||
COPY apps/resonator/package.json package.json | ||
COPY bun.lockb bun.lockb | ||
|
||
RUN bun install | ||
|
||
# ? ------------------------- | ||
FROM oven/bun:1.0.20 | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=base /app/node_modules node_modules | ||
COPY --from=base /app/package.json package.json | ||
|
||
COPY /apps/resonator/src apps/resonator/src | ||
COPY /apps/resonator/tsconfig.json apps/resonator/tsconfig.json | ||
COPY tsconfig.json tsconfig.json | ||
|
||
ENV NODE_ENV production | ||
ENV ENV production | ||
|
||
RUN bun build --compile --minify apps/resonator/src/index.ts --outfile resonator | ||
|
||
RUN rm -rf node_modules && rm -f bun.lockb | ||
|
||
COPY apps/resonator/package.docker.json package.json | ||
RUN bun install | ||
RUN bun install --production | ||
|
||
# ----------- | ||
FROM debian:bullseye-slim | ||
|
||
COPY --from=build /app/resonator resonator | ||
COPY --from=build /app/node_modules node_modules | ||
# COPY apps/resonator/.env .env | ||
|
||
ENV NODE_ENV production | ||
ENV PORT 3001 | ||
|
||
CMD ["bun", "apps/resonator/src/index.ts"] | ||
CMD ["./resonator"] | ||
|
||
EXPOSE 3001 |
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
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
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "resonator", | ||
"dependencies": { | ||
"@libsql/linux-arm64-gnu": "^0.4.0-pre.10" | ||
} | ||
} |
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
Binary file not shown.
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
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
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,6 +1,3 @@ | ||
import { drizzle } from 'drizzle-orm/libsql' | ||
import { createClient } from '@libsql/client' | ||
|
||
export { dream, Dream, DreamEditor } from './repository' | ||
export * from './connection' | ||
export * from './table' |
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