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