-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile code
More file actions
23 lines (17 loc) · 881 Bytes
/
Dockerfile code
File metadata and controls
23 lines (17 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM satorinet/sensorimotor:base
# install code
RUN mkdir /sensorimotor
COPY . /sensorimotor
RUN chmod -R 777 /sensorimotor
RUN cd /sensorimotor && python setup.py develop
## jupyterlab exposed
#EXPOSE 8888
WORKDIR /sensorimotor
## start jupyter lab on startup
#CMD '/bin/bash'
CMD ["jupyter","lab","--ip=*","--port=8888","--no-browser","--ServerApp.iopub_data_rate_limit=10000000","--notebook-dir=/sensorimotor","--allow-root"]
# how to build
# docker build --no-cache -t satorinet/sensorimotor:v1 .
# docker push satorinet/sensorimotor:v1
# docker run --rm -it --name sensorimotor -p 8888:8888 satorinet/sensorimotor:v1
# docker run --rm -it --name sensorimotor -p 8888:8888 -v c:\repos\sensorimotor:/sensorimotor satorinet/sensorimotor:v1 jupyter lab --ip=* --port=8888 --no-browser --ServerApp.iopub_data_rate_limit=10000000 --notebook-dir=/sensorimotor --allow-root