More work
This commit is contained in:
1 parent
9d018e00be
commit
add153d8a6
98 files changed
+18520
-333
No files matched your search
+8
-1
@@ -4,12 +4,19 @@ RUN apt-get -y update && apt-get -y upgrade && \
|
||||
apt-get install --no-install-recommends -y wait-for-it postgresql-client
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install -U -r requirements.txt
|
||||
COPY entrypoint.sh .
|
||||
|
||||
RUN mkdir log
|
||||
|
||||
ENV PYTHONPATH /app/
|
||||
ENV FLASK_APP=max.app
|
||||
ENV FLASK_ENV=production
|
||||
|
||||
COPY max/ ./max
|
||||
COPY scripts/entrypoint.sh .
|
||||
COPY scripts/db-setup.sh .
|
||||
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:8000", "max.app:app"]
|
||||
Reference in new issue
Block a user