diff --git a/Dockerfile b/Dockerfile index e25ca48..53637fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,13 +4,13 @@ WORKDIR /app COPY package.json package-lock.json deps.edn shadow-cljs.edn /app/ COPY . . -# compile server -RUN clojure -A:uberjar - # compile client RUN npm ci RUN clojure -A:cljs -m shadow.cljs.devtools.cli release app +# compile server; this needs to come second, otherwise there will be no JS files in the jar +RUN clojure -A:uberjar + FROM alpine:3.9 RUN apk add --no-cache openjdk8 WORKDIR /app