Neural-Style-Transfer / Dockerfile
harishhirthi's picture
Upload 12 files
9994352 verified
raw
history blame contribute delete
434 Bytes
FROM python:3.8
RUN apt-get update -y && apt-get install -y build-essential
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt
RUN useradd user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
COPY app.py app.py
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]