Skip to content

Commit

Permalink
Fix dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
VikParuchuri committed Dec 3, 2015
1 parent d2affa1 commit 7380896
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nginx/ds.conf
@@ -1,7 +1,15 @@
server {
listen 80;
return 301 https://$host$request_uri;
}

server {

set $custom_host $host;
listen 80;
listen 443 ssl;

ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;

client_max_body_size 10M;

Expand Down
2 changes: 2 additions & 0 deletions python2/Dockerfile
Expand Up @@ -32,6 +32,8 @@ RUN chown ds /home/ds/run_ipython.sh
ADD .bashrc.template /home/ds/.bashrc

EXPOSE 8888
RUN usermod -a -G sudo ds
RUN echo "ds ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER ds
RUN mkdir -p /home/ds/notebooks
ENV HOME=/home/ds
Expand Down
2 changes: 2 additions & 0 deletions python3/Dockerfile
Expand Up @@ -30,6 +30,8 @@ RUN chown ds /home/ds/run_ipython.sh
ADD .bashrc.template /home/ds/.bashrc

EXPOSE 8888
RUN usermod -a -G sudo ds
RUN echo "ds ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER ds
RUN mkdir -p /home/ds/notebooks
ENV HOME=/home/ds
Expand Down

0 comments on commit 7380896

Please sign in to comment.