12 lines
220 B
Docker
12 lines
220 B
Docker
FROM oven/bun:1 as build
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN bun install
|
|
RUN bun run build
|
|
|
|
|
|
FROM nginx:alpine AS runtime
|
|
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
EXPOSE 8080 |