blob: 101b19b453aef0896b1ff0a2f140cc4e755da27d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
FROM clojure:tools-deps as build
RUN mkdir /app
WORKDIR /app
RUN apt-get update && apt-get install -y npm
COPY package* /app/
RUN npm install
COPY . /app
RUN npm run build
RUN clojure -M:frontend release tubo
FROM clojure:tools-deps
RUN mkdir /app
WORKDIR /app
COPY deps.edn /app
RUN clojure -P
COPY . /app
RUN clojure -M -e "(compile 'tubo.downloader-impl)"
COPY --from=build /app/resources /app/resources
EXPOSE 3000
CMD clojure -M:run
|