aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-06-22 19:47:23 +0200
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-06-22 19:47:23 +0200
commitc7dafc936bdb3e052c20f97e3f991a8011f9e276 (patch)
treeb5b6a9f66567505b1d85fca737a20a096ce76be5 /Dockerfile
parent30da9b98a66817ab019af3639c04f1dfb32a36a8 (diff)
feat: Add Docker scripts
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile27
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