Compile client before server
This commit is contained in:
parent
b1d46ace23
commit
180a890b80
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue