MRE/docker/mre.Dockerfile
2025-03-30 00:50:02 -06:00

28 lines
629 B
Docker

FROM python:3.13.2-bullseye
LABEL MAINTAINER="Chris Diesch <chris@quarterhomes.com>"
WORKDIR /var/www
# Add the entrypoint and make it executable
ADD ./docker/entrypoint.sh /var/docker-entrypoint.sh
RUN chmod +x /var/docker-entrypoint.sh
# add the requirements and install them
ADD ./requirements.txt /var/www/requirements.txt
RUN pip install -Ur /var/www/requirements.txt
# add the uwsgi runner
ADD ./run.py /var/www/run.py
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Copy the app directory
COPY ./app /var/www/app
# define the entrypoint
ENTRYPOINT ["/var/docker-entrypoint.sh"]