17 lines
314 B
Docker
17 lines
314 B
Docker
FROM oven/bun:1.3.11-alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json index.html tsconfig.json ./
|
|
COPY scripts ./scripts
|
|
COPY src ./src
|
|
|
|
RUN bun run build
|
|
|
|
FROM nginxinc/nginx-unprivileged:1.29.4-alpine
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
|
|
EXPOSE 8080
|