mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 13:28:57 +00:00
15 lines
499 B
Docker
15 lines
499 B
Docker
FROM nginx:alpine as base
|
|
ENV DATABASE_URL=$DATABASE_URL
|
|
ARG TEST
|
|
RUN echo -e "\e[1;33mENVIRONMENT VARIABLESSSSSSSSS\e[0m"
|
|
RUN env
|
|
RUN echo "Hello, World!" > /usr/share/nginx/html/index.html
|
|
RUN echo "Hello, World about!" > /usr/share/nginx/html/about.html
|
|
RUN env > /usr/share/nginx/html/env.html
|
|
HEALTHCHECK --interval=5s --timeout=3s --start-period=1s --retries=3 CMD wget -qO- http://localhost:80 || exit 1
|
|
|
|
FROM base AS builder
|
|
RUN echo -e "\e[1;33mENVIRONMENT VARIABLESSSSSSSSS\e[0m"
|
|
RUN env
|
|
|