refactor(web): move website into turbo app workspace
This commit is contained in:
parent
2664804e91
commit
b4e626a868
66 changed files with 318 additions and 298 deletions
32
apps/web/Containerfile
Normal file
32
apps/web/Containerfile
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
FROM docker.io/oven/bun:1.3.14 AS deps
|
||||
|
||||
WORKDIR /repo
|
||||
ENV PATH=/repo/apps/web/node_modules/.bin:/repo/packages/ui/node_modules/.bin:/repo/node_modules/.bin:$PATH
|
||||
COPY package.json bun.lock turbo.json tsconfig.base.json ./
|
||||
COPY apps/web/package.json apps/web/package.json
|
||||
COPY packages/ui/package.json packages/ui/package.json
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
FROM deps AS build
|
||||
|
||||
COPY . .
|
||||
RUN bun install --frozen-lockfile && bun run build
|
||||
|
||||
FROM deps AS runtime
|
||||
|
||||
WORKDIR /repo/apps/web
|
||||
ENV NODE_ENV=production
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=3000
|
||||
ENV DATABASE_URL=file:/data/dimensionlab.sqlite
|
||||
ENV DASHBOARD_MIGRATIONS_DIR=/repo/apps/web/drizzle
|
||||
|
||||
COPY --from=build /repo/apps/web/build ./build
|
||||
COPY --from=build /repo/apps/web/dist ./dist
|
||||
COPY --from=build /repo/apps/web/drizzle ./drizzle
|
||||
|
||||
RUN mkdir -p /data
|
||||
VOLUME ["/data"]
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["bun", "build/index.js"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue