forked from coracle/caravel
22 lines
296 B
Docker
22 lines
296 B
Docker
FROM node:20-slim
|
|
|
|
RUN npm install -g bun
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json bun.lock ./
|
|
RUN bun install
|
|
|
|
COPY . .
|
|
|
|
ARG VITE_API_URL
|
|
ARG VITE_PLATFORM_NAME
|
|
ENV VITE_API_URL=$VITE_API_URL
|
|
ENV VITE_PLATFORM_NAME=$VITE_PLATFORM_NAME
|
|
|
|
RUN bun run build
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["npx", "serve", "dist", "-s"]
|