aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 921114c716ce8e978bc169603267dab9c52bc9e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM oven/bun:0.8.1 as build

WORKDIR /due

COPY package.json ./

RUN bun install

COPY ./ ./

RUN bun --bun vite build

FROM oven/bun:0.8.1

WORKDIR /due

COPY --from=build /due .

EXPOSE 3000

CMD ["bun", "./build/index.js"]