web-based photo library management software
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
929 B

  1. FROM ubuntu:focal AS frontend
  2. RUN apt-get update && \
  3. apt-get install -y wget software-properties-common && \
  4. echo "deb https://deb.nodesource.com/node_10.x focal main" | tee /etc/apt/sources.list.d/nodesource.list && \
  5. wget -q -O- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
  6. apt-get update && \
  7. apt-get install -y nodejs
  8. ADD . /tmp/code/
  9. RUN cd /tmp/code && \
  10. npm install && \
  11. ./node_modules/.bin/grunt
  12. FROM ubuntu:focal AS app
  13. RUN apt-get update && \
  14. apt-get install -y python3-pip
  15. ADD . /tmp/code/
  16. COPY --from=frontend /tmp/code/styles/dist/style.css /tmp/code/styles/dist/style.css
  17. RUN cd /tmp/code && \
  18. pip3 install -r requirements.txt && \
  19. python3 setup.py install && \
  20. useradd --uid 1000 app && \
  21. rm -rf /tmp/code
  22. VOLUME /srv/library
  23. VOLUME /srv/cache
  24. VOLUME /srv/db
  25. USER app
  26. ENV CACHE_URL=file://./tmp/cache
  27. ENTRYPOINT ["photoappd"]