Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
inoue0426 authored Jul 8, 2024
1 parent 722e1cb commit 6a1fd1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ ENV PATH /opt/conda/bin:$PATH
COPY environment.yml /app/environment.yml
RUN conda env create -f /app/environment.yml

RUN /bin/bash -c "source activate drGAT && conda install -c conda-forge notebook"

COPY . /app

# コンテナが起動時にdrGAT環境をアクティベートするようにする
ENTRYPOINT [ "/bin/bash", "-c", "source activate drGAT && bash" ]
EXPOSE 9999
CMD [ "/bin/bash", "-c", "source activate drGAT && nohup jupyter notebook --ip=0.0.0.0 --port=9999 --no-browser --allow-root --NotebookApp.token='' > jupyter.log 2>&1 & bash" ]

0 comments on commit 6a1fd1e

Please sign in to comment.