Dockerfile 654 B

12345678910111213141516
  1. FROM alpine:latest
  2. LABEL maintainer="fred.damstra@gmail.com"
  3. LABEL version="0.2"
  4. LABEL description="Docker image that sorts my midjourney albums"
  5. RUN echo -e "search default.svc.cluster.local svc.cluster.local cluster.local\nnameserver 10.152.183.10\noptions ndots:2" > /etc/resolv.conf
  6. RUN apk add --no-cache bash bash-completion rsync file
  7. COPY . /opt/midjourney/
  8. RUN chmod 755 /opt/midjourney/sort_and_upload.sh \
  9. && chmod 755 /opt/midjourney/bin/gdrive \
  10. && /opt/midjourney/bin/gdrive account import /opt/midjourney/bin/gdrive_export-fred_damstra_gmail_com.tar \
  11. && mkdir /scratch \
  12. && mkdir /shared
  13. CMD ["/opt/midjourney/sort_and_upload.sh"]