m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-08 05:03:49 -05:00

refactor: remove node and use only bun (#101)

This commit is contained in:
Raphaël Catarino
2025-04-26 12:13:30 +02:00
committed by GitHub
parent 80a295680d
commit 2ac036d353
13 changed files with 2380 additions and 40 deletions

View File

@@ -1,18 +1,18 @@
### Build UI ###
FROM node:20 AS web
FROM oven/bun:1-alpine AS web
# Install bun
RUN curl -fsSL https://bun.sh/install | bash
# Copy web folder
COPY ./web /web
# Copy package.json and lockfile from web
WORKDIR /web
COPY ./web/package.json ./web/bun.lock ./
# Install requirements
RUN ~/.bun/bin/bun install
RUN bun install
# Copy web folder
COPY ./web .
# Build frontend
RUN ~/.bun/bin/bun run build
RUN bun run build
### Build Cup ###
FROM rust:1-alpine AS build