23 lines
378 B
Docker
23 lines
378 B
Docker
FROM oven/bun:1.1 as build
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
ARG API_URL
|
|
ENV VITE_API_URL_DEV $API_URL
|
|
|
|
RUN bun install && bun run build
|
|
|
|
FROM oven/bun:1.1 as main
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/build ./build
|
|
COPY --from=build /app/package.json ./package.json
|
|
COPY --from=build /app/package-lock.json ./package-lock.json
|
|
|
|
EXPOSE 4173
|
|
|
|
RUN bun ci --omit dev
|
|
CMD ["bun", "build"]
|