All checks were successful
continuous-integration/drone/push Build is passing
36 lines
1.0 KiB
Docker
36 lines
1.0 KiB
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 Index
|
|
COPY ./_index /usr/share/nginx/html/
|
|
|
|
# Copy Libs
|
|
COPY ./libs/doc-forge/site /usr/share/nginx/html/libs/doc-forge/
|
|
COPY ./libs/mail-intake/site /usr/share/nginx/html/libs/mail-intake/
|
|
COPY ./libs/mongo-ops/site /usr/share/nginx/html/libs/mongo-ops/
|
|
COPY ./libs/omniread/site /usr/share/nginx/html/libs/omniread/
|
|
COPY ./libs/openapi-first/site /usr/share/nginx/html/libs/openapi-first/
|
|
COPY ./libs/py-jwt/site /usr/share/nginx/html/libs/py-jwt/
|
|
|
|
# Copy Apis
|
|
COPY ./apis/blog/site /usr/share/nginx/html/apis/blog/
|
|
|
|
# Copy Tutorials
|
|
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;"]
|