MRE/docker/mre.Dockerfile

28 lines
629 B
Docker
Raw Normal View History

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