eden-api-gateway/Dockerfile

25 lines
546 B
Docker
Raw Permalink Normal View History

2023-03-19 08:02:46 +00:00
FROM python:3.10
RUN apt-get update -yqq && apt-get install -y \
libgl1-mesa-glx \
&& rm -rf /var/lib/apt/lists/*
2023-03-18 22:50:46 +00:00
WORKDIR /app
2023-03-19 08:02:46 +00:00
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}"
2023-03-18 22:50:46 +00:00
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY app app
EXPOSE 5000
2023-03-19 08:02:46 +00:00
# attempted bugfix
COPY image_utils.py /home/eden/.local/lib/python3.10/site-packages/eden/image_utils.py
2023-03-18 22:50:46 +00:00
2023-03-18 23:21:35 +00:00
CMD ["flask", "run", "--debug", "--host=0.0.0.0"]