From c7dafc936bdb3e052c20f97e3f991a8011f9e276 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Thu, 22 Jun 2023 19:47:23 +0200 Subject: feat: Add Docker scripts --- Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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 -- cgit v1.2.3