Skip to content

Commit

Permalink
Fixing dockerfile for ndk web
Browse files Browse the repository at this point in the history
  • Loading branch information
NewtonSander committed Jul 30, 2024
1 parent 85a39fe commit 2ed0ca1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM python:3.10.0 as build
FROM python:3.11.0 as build

# Install system dependencies for HDF5
RUN apt-get update && apt-get install -y \
libhdf5-dev python3-h5py \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /ndk

Expand All @@ -19,15 +24,15 @@ ENV POETRY_VIRTUALENVS_CREATE=false
RUN ./venv/bin/poetry install && \
./venv/bin/pip install git+https://github.com/trustimaging/stride@2520c59

FROM python:3.10.0-slim
FROM python:3.11.0-slim

COPY --from=build /ndk /ndk
WORKDIR /ndk

RUN ./venv/bin/pip install --upgrade pip

RUN apt-get update && \
apt-get install -y g++ jq make unzip wget ffmpeg && \
apt-get install -y g++ jq make unzip wget ffmpeg libhdf5-dev python3-h5py && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion docs/user_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ There are multiple ways of running the web server, you can choose between:
1. Open a terminal and run the following command:

```
docker run -p 8080:8080 -w "/ndk" -it ghcr.io/agencyenterprise/neurotechdevkit:latest python src/web/app.py
docker run -p 8080:8080 -e WEB_SERVER_HOST=0.0.0.0 -w "/ndk" -it ghcr.io/agencyenterprise/neurotechdevkit:latest python src/web/app.py
```


Expand Down

0 comments on commit 2ed0ca1

Please sign in to comment.