Replace front proxy with new SvelteKit frontend app
- Remove the old Hono/Bun proxy server - Add the new `apps/frontend` SvelteKit scaffold and telemetry hook
This commit is contained in:
27
dockerfiles/frontend.Dockerfile
Normal file
27
dockerfiles/frontend.Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM node:25.6.1 AS production
|
||||
|
||||
RUN npm i -g pnpm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
|
||||
|
||||
COPY apps/frontend/package.json ./apps/frontend/package.json
|
||||
|
||||
COPY packages ./packages
|
||||
|
||||
RUN pnpm install
|
||||
|
||||
COPY apps/frontend ./apps/frontend
|
||||
|
||||
RUN pnpm install
|
||||
|
||||
RUN pnpm run build
|
||||
|
||||
COPY scripts/prod.start.sh ./scripts/prod.start.sh
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
RUN chmod +x scripts/prod.start.sh
|
||||
|
||||
CMD ["/bin/sh", "scripts/prod.start.sh", "apps/frontend"]
|
||||
Reference in New Issue
Block a user