mirror of https://github.com/Cesura/pastey.git
parent
c14625b26e
commit
5c57120097
@ -1,8 +1,11 @@
|
|||||||
FROM tensorflow/tensorflow:2.5.0
|
FROM tensorflow/tensorflow:2.5.0
|
||||||
WORKDIR /app
|
ENV PASTEY_WORKERS=2
|
||||||
COPY requirements.txt /app
|
ENV PASTEY_THREADS=4
|
||||||
RUN mkdir -p /app/data && pip install -r /app/requirements.txt
|
ENV PASTEY_LISTEN_PORT=5000
|
||||||
|
RUN pip install gunicorn
|
||||||
|
COPY requirements.txt /app/
|
||||||
|
RUN pip install -r /app/requirements.txt
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
EXPOSE 5000
|
WORKDIR /app
|
||||||
ENV PASTEY_DATA_DIRECTORY=/app/data
|
ENTRYPOINT ["sh", "-c", "gunicorn -w $PASTEY_WORKERS -t $PASTEY_THREADS -b :$PASTEY_LISTEN_PORT app:app"]
|
||||||
ENTRYPOINT ["python3", "app.py"]
|
EXPOSE $PASTEY_LISTEN_PORT
|
||||||
|
Loading…
Reference in new issue