Skip to content

Commit

Permalink
fix: Dockerfile (ci failing)
Browse files Browse the repository at this point in the history
  • Loading branch information
flawiddsouza committed Jun 22, 2024
1 parent abe69a4 commit 9dc4467
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
# bun install

FROM node:22-alpine AS bun-install
FROM node:22-bookworm-slim AS bun-install

WORKDIR /app/api

COPY api /app/api
COPY ui /app/ui

RUN apt-get update && apt-get install -y \
curl \
unzip

RUN curl -sLO https://github.com/oven-sh/bun/releases/latest/download/bun-linux-x64.zip && \
unzip bun-linux-x64.zip -d /root && \
chmod +x /root/bun-linux-x64/bun && \
rm bun-linux-x64.zip

ENV PATH=/root/bun-linux-x64:${PATH}

WORKDIR /app/api
RUN rm -rf node_modules
RUN npm install
RUN rm -rf node_modules && bun install

WORKDIR /app/ui
RUN rm -rf node_modules
RUN npm install
RUN npm run build
RUN rm -rf node_modules && bun install
RUN bun run build

# runtime

Expand Down

0 comments on commit 9dc4467

Please sign in to comment.