Skip to content

Commit

Permalink
remove multi-stage as it prevents docker secrets from being used
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Jun 15, 2024
1 parent 2bda61a commit a31201f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
tags:
- v*
env:
VERSION: 2.0.7
VERSION: 2.0.8

jobs:
publish:
Expand Down
26 changes: 1 addition & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ortussolutions/commandbox:lucee5 as workbench
FROM ortussolutions/commandbox:lucee5

WORKDIR /
RUN rm -rf /app && mkdir -p /app
Expand All @@ -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

0 comments on commit a31201f

Please sign in to comment.