Files
hiyv-nginx/Dockerfile
T
Georgi Manchev 03c0e44e42
Publish container image / publish (push) Failing after 5m41s
Add Hiyv nginx image and release pipeline
2026-09-29 00:40:39 +03:00

22 lines
732 B
Docker

FROM nginx:1.28-alpine
ARG COMMIT_ID=unknown
LABEL org.opencontainers.image.title="Hiyv nginx" \
org.opencontainers.image.description="Hiyv-branded base nginx image" \
org.opencontainers.image.revision="${COMMIT_ID}" \
org.opencontainers.image.source="https://git.mancheff.com/hiyv-demo/hiyv-nginx"
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY web/ /usr/share/nginx/html/
RUN sed "s|@@COMMIT_ID@@|${COMMIT_ID}|g" \
/usr/share/nginx/html/index.html.template \
> /usr/share/nginx/html/index.html \
&& rm /usr/share/nginx/html/index.html.template
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://127.0.0.1/healthz || exit 1