23 lines
337 B
Docker
23 lines
337 B
Docker
FROM oven/bun
|
|
|
|
# Build client
|
|
WORKDIR /app/client
|
|
COPY client .
|
|
RUN bun install
|
|
RUN bunx --bun vite build
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mv client/build public
|
|
RUN rm -rf client
|
|
|
|
COPY server src
|
|
RUN mv src/package.json package.json
|
|
COPY tsconfig.json .
|
|
|
|
RUN bun install --production
|
|
|
|
ENV NODE_ENV production
|
|
CMD ["bun", "src/index.ts"]
|
|
|
|
EXPOSE 3000
|