Docker support, backend SPA mode
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# syntax=docker/dockerfile:1.7-labs
|
||||
FROM node:lts AS build
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install --yes build-essential
|
||||
RUN apt-get install --yes libxi-dev
|
||||
RUN apt-get install --yes python-is-python3
|
||||
|
||||
COPY --parents package.json pnpm-lock.yaml pnpm-workspace.yaml packages/*/package.json .
|
||||
RUN npm install --global pnpm
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
RUN pnpm exec tsc --build
|
||||
RUN pnpm --filter frontend exec vite build
|
||||
|
||||
FROM oven/bun:1
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY --from=build /app .
|
||||
ENTRYPOINT ["bun", "run", "packages/backend/src/app.ts"]
|
||||
Reference in New Issue
Block a user