FROM python:3.10 RUN apt-get update -yqq && apt-get install -y \ libgl1-mesa-glx \ && rm -rf /var/lib/apt/lists/* WORKDIR /app RUN useradd -ms /bin/bash eden # make them own /app RUN chown eden:eden /app USER eden # add /home/eden/.local/bin to PATH ENV PATH="/home/eden/.local/bin:${PATH}" COPY requirements.txt . RUN pip install -r requirements.txt COPY app app EXPOSE 5000 # attempted bugfix COPY image_utils.py /home/eden/.local/lib/python3.10/site-packages/eden/image_utils.py CMD ["flask", "run", "--debug", "--host=0.0.0.0"]