-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (30 loc) · 1.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Seed it on a specific CommandBox Image Version
# https://hub.docker.com/r/ortussolutions/commandbox/tags
ARG BASE_IMAGE=ortussolutions/commandbox
FROM ${BASE_IMAGE}
# Labels
LABEL version="@version@"
LABEL maintainer "Jon Clausen <[email protected]>"
LABEL maintainer "Luis Majano <[email protected]>"
LABEL repository "https://github.com/Ortus-Solutions/docker-contentbox"
# Incoming Secrets/Vars From Build Process
ARG IMAGE_VERSION=6.0.1
ARG TAGS=ortussolutions/contentbox:test
ARG [email protected]+38
# Copy over our app resources which brings lots of goodness like session distribution,
# db env vars, caching, etc.
COPY ./resources/app/ ${BUILD_DIR}/contentbox-app
# Copy over ContentBox build scripts
COPY ./build/*.sh ${BUILD_DIR}/contentbox/
# Make them executable just in case.
RUN chmod +x ${BUILD_DIR}/contentbox/*.sh
# Install ContentBox and Dependencies
RUN ${BUILD_DIR}/contentbox/contentbox-setup.sh
# ContentBox Run
CMD ${BUILD_DIR}/contentbox/contentbox-run.sh
# WARM UP THE SERVER
RUN ${BUILD_DIR}/util/warmup-server.sh
# Healthcheck environment variables
ENV HEALTHCHECK_URI "http://127.0.0.1:${PORT}/index.cfm"
# Our healthcheck interval doesn't allow dynamic intervals - Default is 20s intervals with 15 retries
HEALTHCHECK --interval=30s --timeout=30s --retries=2 --start-period=60s CMD curl --fail ${HEALTHCHECK_URI} || exit 1