Skip to content

Commit

Permalink
Simplify clj tools setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ccfontes committed Dec 18, 2023
1 parent 25149a5 commit 064bc8a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions template/bb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ghcr.io/openfaas/of-watchdog:0.9.13 AS watchdog
FROM babashka/babashka:1.3.186 AS babashka
FROM clojure:tools-deps-1.11.1.1347 AS build
FROM eclipse-temurin:8u392-b08-jdk AS build

RUN set -e

Expand All @@ -12,12 +12,7 @@ ENV PATH="$PATH:/usr/local/bin"
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
COPY --from=babashka /usr/local/bin/bb /usr/local/bin/bb

# /root/.m2 provides: clojure, core.specs.alpha, and spec.alpha
RUN addgroup --system app && adduser --system --ingroup app app && \
mkdir -p $HOME/.deps.clj/1.11.1.1347/ClojureTools && \
mv /root/.m2 $HOME && \
chown app:app -R $HOME && \
mv /usr/local/lib/clojure/libexec/clojure-tools-1.11.1.1347.jar $HOME/.deps.clj/1.11.1.1347/ClojureTools
RUN addgroup --system app && adduser --system --ingroup app app

USER app
WORKDIR $HOME
Expand Down

0 comments on commit 064bc8a

Please sign in to comment.