Get the MRE api working #1

Merged
chris merged 50 commits from add_mre_api into main 2025-04-06 23:58:50 +00:00
Showing only changes of commit 6f746848d9 - Show all commits

View File

@ -1,10 +1,27 @@
FROM python:3.13.2-bullseye
LABEL MAINTAINER="Chris Diesch <chris@quarterhomes.com>"
# make sure everything it up-to-date
RUN "apt-get -y update"
# Add the entrypoint and make it executable
ADD ./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
ENV PYTHONUNBUFFERED 1
COPY .. .
# Copy the app directory
COPY ../app /var/www/app
CMD ['.', 'venv/bin/activate', ';',
'pip', 'install', '-r', 'requirements.txt']
# define the entrypoint
ENTRYPOINT ["/var/docker-entrypoint.sh"]