Last active
June 30, 2020 09:58
-
-
Save RomanSteinberg/4e774107ad4940e7bc4b484189437606 to your computer and use it in GitHub Desktop.
Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM tensorflow/tensorflow:1.15.0-gpu-py3 | |
RUN addgroup --gid 1001 user && \ | |
adduser --disabled-password --gecos '' -u 1000 --gid 1001 --home /home/user recogniser | |
WORKDIR /home/user | |
RUN apt-get update && \ | |
apt-get -y install --no-install-recommends --no-upgrade build-essential cmake \ | |
libopenblas-dev liblapack-dev libx11-dev libgtk-3-dev cuda-toolkit-10-0 | |
COPY . . | |
RUN pip install --no-cache-dir --disable-pip-version-check -r ./requirements.txt && \ | |
pip install --no-cache-dir --disable-pip-version-check -r ./requirements.gpu.txt && \ | |
rm -rf /tmp/* /var/tmp/* /usr/share/man /tmp/* /var/tmp/* && \ | |
rm -rf /var/lib/apt/lists/* /var/log/* ~/.cache | |
ENV PYTHONUNBUFFERED 1 | |
ENTRYPOINT ["python", "run.py"] | |
CMD ["app"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment