A deployable markdown editor that connects with your self hosted files and lets you edit in a beautiful interface
at main 32 lines 644 B view raw
1# Build stage 2FROM oven/bun:1 AS builder 3 4WORKDIR /build 5 6# Copy package files 7COPY package.json bun.lock ./ 8RUN bun install --frozen-lockfile 9 10# Copy source code 11COPY . . 12 13# Build the application 14RUN bun run build 15 16# Runtime stage - serve with nginx 17FROM nginx:alpine 18 19# Copy built files 20COPY --from=builder /build/dist /usr/share/nginx/html 21 22# Copy nginx configuration 23COPY nginx.conf /etc/nginx/conf.d/default.conf 24 25# Expose port 26EXPOSE 80 27 28# Health check 29HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ 30 CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1 31 32CMD ["nginx", "-g", "daemon off;"]