Skip to content

Commit

Permalink
Added Dockerfile to launch JBR in web server mode
Browse files Browse the repository at this point in the history
  • Loading branch information
olegs authored Mar 24, 2021
1 parent ba1e895 commit 7614977
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
LABEL author = "Oleg Shpynov"
LABEL email = "[email protected]"

FROM ubuntu:20.04

RUN apt-get update \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/*

RUN wget https://download.jetbrains.com/biolabs/jbr_browser/jar/jbr-1.0.beta.5318.jar --quiet -O jbr.jar

RUN set -e && mkdir /jbr_session

# JBR sessions should be located here
VOLUME ["/jbr_session"]

EXPOSE 5000

# JBR in server mode
ENTRYPOINT java -Xmx8G -jar jbr.jar --server --port 5000 --sessions /jbr_sessions

0 comments on commit 7614977

Please sign in to comment.