Skip to content

Commit 7d098e4

Browse files
committed
fix: dockerfile for frontend
1 parent 5a33ede commit 7d098e4

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

frontend/Dockerfile

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
FROM oven/bun:1 AS base
2-
3-
WORKDIR /app
4-
5-
COPY package*.json bun.lock* ./
6-
1+
FROM node:20-alpine as builder
2+
RUN npm install -g bun
3+
WORKDIR /code/
4+
ADD package*.json bun.lock* ./
75
RUN bun install
8-
9-
COPY . .
10-
11-
RUN bun build src/index.ts
6+
ADD . .
7+
RUN bunx --bun vite build
128

139
FROM devforth/spa-to-http:latest
14-
15-
COPY --from=builder /app/dist/ .
16-
17-
EXPOSE 8080
18-
19-
CMD ["spa-to-http"]
10+
COPY --from=builder /code/dist/ .

0 commit comments

Comments
 (0)