diff --git a/.travis.yml b/.travis.yml index dc68ad1..c52954b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: shell -dist: bionic +dist: focal os: - linux diff --git a/Dockerfile b/Dockerfile index 93b7ae0..99821ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ # Pull the image containing Julia -FROM paveloom/binder-julia:0.1.0 AS binder-julia +FROM paveloom/binder-julia:0.1.1 AS binder-julia # Base image -FROM paveloom/binder-tex:0.1.0 +FROM paveloom/binder-tex:0.1.1 # Meta information LABEL maintainer="Pavel Sobolev (https://github.com/Paveloom)" -LABEL version="0.1.0" +LABEL version="0.1.1" LABEL description="If `paveloom/binder-julia` and `paveloom/binder-tex` had a baby." LABEL github-repository="https://github.com/paveloom-d/binder-julia-plots" LABEL docker-repository="https://hub.docker.com/r/paveloom/binder-julia-plots" @@ -17,14 +17,19 @@ COPY scripts /scripts # Allow their execution RUN sudo chmod -R +x /scripts -# Add `/usr/other/$USER/julia/bin` to the `PATH` -ENV PATH=$PATH:/usr/other/$USER/julia/bin +# Create a hidden folder for the user +RUN sudo mkdir -p /usr/other/$USER && \ + sudo chgrp -R $USER /usr/other/$USER && \ + sudo chmod -R g+w /usr/other/$USER # Copy the Julia binaries folder -COPY --from=binder-julia /usr/other/$USER/julia /usr/other/$USER/julia +COPY --from=binder-julia --chown=$USER:$USER /usr/other/$USER/julia /usr/other/$USER/julia # Copy the Julia environment -COPY --from=binder-julia $HOME/.julia $HOME/.julia +COPY --from=binder-julia --chown=$USER:$USER $HOME/.julia $HOME/.julia + +# Add `/usr/other/$USER/julia/bin` to the `PATH` +ENV PATH=$PATH:/usr/other/$USER/julia/bin # Install Julia packages RUN /scripts/user/julia/install-julia-packages.sh diff --git a/README.md b/README.md index 0009ea8..2b10bf9 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ plots. See more details about the content of the image under the spoiler.