Compile client before server

This commit is contained in:
heyarne 2020-05-11 16:22:32 +02:00
commit 180a890b80

View file

@ -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