aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: b9ddbecb00018546e91e74dee85027d67a1703d0 (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-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
RUN clojure -M -e "(compile 'tubo.downloader-impl)"
COPY --from=build /app/resources /app/resources

EXPOSE 3000

CMD clojure -M:run