dockerfile 959 B

1234567891011121314151617181920212223242526272829303132
  1. FROM ubuntu:22.10
  2. WORKDIR /app
  3. RUN apt-get update && apt-get upgrade -y
  4. RUN apt-get install software-properties-common -y
  5. RUN apt-get update && apt-get install -y
  6. RUN add-apt-repository universe
  7. RUN apt-get install python3-pip -y
  8. RUN apt-get install which gcc -y
  9. # Needed for opencv
  10. RUN apt-get install ffmpeg libsm6 libxext6 git -y
  11. RUN apt-get install imagemagick potrace -y
  12. RUN add-apt-repository ppa:inkscape.dev/stable
  13. RUN apt-get install -y inkscape
  14. RUN apt-get install -y scour pngquant
  15. ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
  16. RUN git clone https://framagit.org/Marc-AntoineA/files-manipulator.git files-manipulator
  17. RUN pip install files-manipulator/images-manipulator
  18. COPY requirements.txt ./requirements.txt
  19. RUN pip3 install -r requirements.txt
  20. COPY . /app
  21. CMD ["uwsgi", "--socket", "0.0.0.0:4000", "--protocol", "http", "-w", "wsgi:application"]
  22. #Expose port 90 of the container to the outside
  23. EXPOSE 4000