aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 8ae933fc373645132cd77f39da648f4baa66e1dc (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
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