Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #208

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@

# For those who wanst to run on cpu only have to comment the following FROM and instead
# FROM debian:bullseye #(find the right OS description by $lsb_release -a)
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
# replace CUDA version to your CUDA version.
# You can check your CUDA version with below.
# nvcc -V


RUN apt-get update
RUN apt-get install -y python3
RUN apt-get -y install python3-pip git
# python-multipart was missing which caused the docker to exit soon after start
RUN pip install python-multipart
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
# replace CUDA version to your CUDA version.

Expand All @@ -16,6 +22,10 @@ RUN pip3 install fastapi uvicorn[standard] fsspec[http]==2023.1.0
RUN git clone https://github.com/facebookresearch/nougat.git
WORKDIR /workspace/nougat

# The following upgrade for numpy and fsspec was required
RUN pip3 install --no-cache-dir --upgrade numpy
RUN pip3 install --no-cache-dir --upgrade "fsspec[http]>=2023.1.0,<=2023.10.0"

RUN python3 setup.py install

EXPOSE 8503
Expand Down