jschr-bootstrap-modal
SUCCESS
5m 08s
History Source
SummaryIterations1Transcript11Dockerfile
Dockerfile21 lines · 449 chars
# Stage 0: builder (no-op for static assets)
FROM alpine:3.19 AS builder
WORKDIR /site
COPY . .

# Simple no-op build step to satisfy build workflows
RUN echo "Static site build step (no-op)" \
  && mkdir -p /site/build

# Stage 1: runtime image
FROM nginx:stable

# Copy built assets to nginx's web root
COPY --from=builder /site/ /usr/share/nginx/html/

# Expose port 80
EXPOSE 80

# Run nginx in the foreground
CMD ["nginx", "-g", "daemon off;"]