Files
docs/Dockerfile
aetos 7b05d3b213
All checks were successful
continuous-integration/drone/push Build is passing
Update Dockerfile
2025-11-20 17:28:35 +00:00

26 lines
743 B
Docker

# Stage 1: Base Nginx static server
FROM nginx:1.27-alpine
# Metadata
LABEL maintainer="Aetoskia <dev@aetoskia.com>"
LABEL description="Static documentation host for Aetoskia projects"
# Copy custom Nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy all project docs
# Expected folder layout (on build context):
COPY ./_index /usr/share/nginx/html/
COPY ./mongo-ops/site /usr/share/nginx/html/mongo-ops/
COPY ./blog-api/site /usr/share/nginx/html/api/blog/
COPY ./tutorials/media-manager/site /usr/share/nginx/html/tutorials/media-manager/
# Expose HTTP port
EXPOSE 80
# Healthcheck
HEALTHCHECK --interval=30s --timeout=5s CMD wget -qO- http://localhost/ || exit 1
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]