diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fdc1ee..b9c5c61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: tags: - v* env: - VERSION: 2.0.7 + VERSION: 2.0.8 jobs: publish: diff --git a/Dockerfile b/Dockerfile index 0867046..50e8c6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ortussolutions/commandbox:lucee5 as workbench +FROM ortussolutions/commandbox:lucee5 WORKDIR / RUN rm -rf /app && mkdir -p /app @@ -13,32 +13,8 @@ RUN rm -f /app/config/Coldbox.cfc COPY ./build/Coldbox.cfc /app/config/Coldbox.cfc -# Generate the startup script only -ENV FINALIZE_STARTUP true -RUN $BUILD_DIR/run.sh - -# Debian Slim is the smallest OpenJDK image on that kernel. For most apps, this should work to run your applications -FROM eclipse-temurin:11-jre-jammy as app - -# COPY our generated files -COPY --from=workbench /app /app -COPY --from=workbench /usr/local/lib/build /usr/local/lib/build -COPY --from=workbench /usr/local/lib/serverHome /usr/local/lib/serverHome - -RUN mkdir -p /usr/local/lib/CommandBox/lib - -COPY --from=workbench /usr/local/lib/CommandBox/lib/runwar-* /usr/local/lib/CommandBox/lib/ -COPY --from=workbench /usr/local/bin/startup-final.sh /usr/local/bin/run.sh - -RUN mkdir -p /usr/local/lib/CommandBox/cfml/system/config -COPY --from=workbench /usr/local/lib/CommandBox/cfml/system/config/urlrewrite.xml /usr/local/lib/CommandBox/cfml/system/config/urlrewrite.xml - -WORKDIR /app - # Healthcheck environment variables ENV HEALTHCHECK_URI "http://127.0.0.1:8080/?healthcheck=true" # Our healthcheck interval doesn't allow dynamic intervals - Default is 20s intervals with 15 retries HEALTHCHECK --interval=20s --timeout=30s --retries=15 CMD curl --fail ${HEALTHCHECK_URI} || exit 1 - -CMD /usr/local/bin/run.sh