rifalto/Containerfile

21 lines
400 B
Plaintext
Raw Normal View History

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 rifaserver ./rifaserver
COPY start.sh .
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"]