mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
Update Dockerfile
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
FROM nginx:alpine
|
FROM nginx:alpine as base
|
||||||
ENV DATABASE_URL=$DATABASE_URL
|
ENV DATABASE_URL=$DATABASE_URL
|
||||||
RUN echo -e "\e[1;33mENVIRONMENT VARIABLES\e[0m"
|
RUN echo -e "\e[1;33mENVIRONMENT VARIABLES\e[0m"
|
||||||
RUN env
|
RUN env
|
||||||
RUN echo "Hello, World!" > /usr/share/nginx/html/index.html
|
RUN echo "Hello, World!" > /usr/share/nginx/html/index.html
|
||||||
HEALTHCHECK --interval=5s --timeout=3s --start-period=30s --retries=3 CMD wget -qO- http://localhost:80 || exit 1
|
HEALTHCHECK --interval=5s --timeout=3s --start-period=30s --retries=3 CMD wget -qO- http://localhost:80 || exit 1
|
||||||
|
|
||||||
|
FROM base AS builder
|
||||||
|
RUN echo -e "\e[1;33mENVIRONMENT VARIABLES\e[0m"
|
||||||
|
RUN env
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user