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.

25 lines
546 B

FROM python:3.10
RUN apt-get update -yqq && apt-get install -y \
libgl1-mesa-glx \
&& rm -rf /var/lib/apt/lists/*
2 years ago
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}"
2 years ago
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
2 years ago
2 years ago
CMD ["flask", "run", "--debug", "--host=0.0.0.0"]