fix depend errors

This commit is contained in:
ngn
2024-05-22 00:08:06 +03:00
parent a72f7bb19b
commit 73a138a8fd
4 changed files with 893 additions and 184 deletions

View File

@ -3,10 +3,20 @@ FROM oven/bun:1.1 as build
WORKDIR /app
COPY . /app
EXPOSE 4173
ARG API_URL
ENV VITE_API_URL_DEV $API_URL
ENV VITE_API_URL_DEV $API_URL
RUN bun install && bun run build
CMD ["bun", "run", "preview"]
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"]