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