diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-05 02:07:32 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-05 02:07:32 +0300 |
commit | 8a13ff2c6821643e8df08cc0d7731e4b938e9edb (patch) | |
tree | a685a5ea1443acdf0847ca5ff57159b472382b69 /Dockerfile | |
parent | UPPERCASE user-facing parameters (diff) | |
download | jekyll-docker-8a13ff2c6821643e8df08cc0d7731e4b938e9edb.tar.gz jekyll-docker-8a13ff2c6821643e8df08cc0d7731e4b938e9edb.zip |
enable out-of-tree builds
This directory must not be a subdirectory of the Jekyll project anymore.
The hacks I had to put in place for this will be documented in the next
commit.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 1f56c22..0000000 --- a/Dockerfile +++ /dev/null @@ -1,41 +0,0 @@ -FROM debian:buster-slim - -SHELL ["/bin/bash", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt update -yq && \ - apt install -yq --no-install-recommends \ - build-essential \ - ca-certificates wget \ - sudo - -# Creating regular user 'developer': -ARG USER=developer -RUN addgroup "$USER" && \ - adduser --disabled-password --gecos "" --ingroup "$USER" --home "/home/$USER" "$USER" && \ - addgroup "$USER" sudo && \ - echo -e '%sudo ALL=(ALL) NOPASSWD:ALL\nDefaults env_keep += "HOME"' >> /etc/sudoers - -USER "$USER" -ENV src_dir="/home/$USER/src" -RUN mkdir -p -- "$src_dir/docker" -WORKDIR "$src_dir/docker" - -ENV PATH="/home/$USER/.local/bin:$PATH" - -COPY ["docker/Makefile", "./"] -RUN sudo make ruby-install && \ - sudo make ruby-install/clean && \ - make ruby && \ - sudo make chruby && \ - sudo make chruby/profile.d && \ - sudo make chruby/clean && \ - make bundler - -COPY ["Gemfile", "Gemfile.lock", "../"] -RUN make dependencies - -COPY [".", "../"] -RUN sudo chown -R "$USER:$USER" ../ -CMD make jekyll/serve |