diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8ae933f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM clojure:tools-deps-alpine as build + +RUN mkdir /app +WORKDIR /app + +RUN apk add npm + +COPY package* /app/ +RUN npm install + +COPY . /app +RUN npm run build +RUN clojure -M:frontend release tubo + +FROM clojure:tools-deps-alpine +RUN mkdir /app +WORKDIR /app +COPY deps.edn /app + +RUN clojure -P + +COPY . /app +COPY --from=build /app/resources /app/resources + +EXPOSE 3000 + +CMD clojure -M:run |