2023-06-14 09:20:36 -03:00
|
|
|
FROM python:3.11-slim-buster
|
|
|
|
|
|
|
|
|
|
RUN pip install --no-cache-dir gunicorn
|
|
|
|
|
|
|
|
|
|
WORKDIR /rifalto
|
|
|
|
|
COPY requirements.txt /rifalto
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
RUN rm requirements.txt
|
|
|
|
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
|
|
|
|
|
|
COPY start.sh .
|
2023-06-14 17:09:06 -03:00
|
|
|
|
|
|
|
|
COPY rifaserver ./rifaserver
|
2023-06-14 09:20:36 -03:00
|
|
|
COPY migrations ./migrations
|
|
|
|
|
|
|
|
|
|
RUN chmod +x start.sh
|
|
|
|
|
ENV FLASK_APP=rifaserver.app
|
2023-06-14 15:44:23 -03:00
|
|
|
ENV GUNICORN_BIND=:5000
|
2023-06-14 09:20:36 -03:00
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
CMD ["./start.sh"]
|