Dockerfile 447 B

12345678910111213141516171819202122232425262728
  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 npm run build
  9. RUN clojure -M:frontend release tubo
  10. FROM clojure:tools-deps
  11. RUN mkdir /app
  12. WORKDIR /app
  13. COPY deps.edn /app
  14. RUN clojure -P
  15. COPY . /app
  16. RUN clojure -M -e "(compile 'tubo.downloader-impl)"
  17. COPY --from=build /app/resources /app/resources
  18. EXPOSE 3000
  19. CMD clojure -M:run