Dockerfile 429 B

123456789101112131415161718192021222324252627
  1. FROM clojure:tools-deps as build
  2. RUN mkdir /app
  3. WORKDIR /app
  4. RUN apt-get update && apt-get install -y npm
  5. COPY package* /app/
  6. RUN npm install
  7. COPY . /app
  8. RUN clojure -M:frontend release tubo
  9. FROM clojure:tools-deps
  10. RUN mkdir /app
  11. WORKDIR /app
  12. COPY deps.edn /app
  13. RUN clojure -P
  14. COPY . /app
  15. RUN clojure -M -e "(compile 'tubo.downloader-impl)"
  16. COPY --from=build /app/resources /app/resources
  17. EXPOSE 3000
  18. CMD clojure -M:run