log101-dot-dev/Dockerfile

13 lines
286 B
Docker

FROM oven/bun AS build
WORKDIR /app
COPY package*.json ./
RUN bun install
COPY . .
ENV PUBLIC_BACKEND_HOST=https://api.acayip.dev
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