Skip to content

Commit

Permalink
minor last minute tweaks to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dysinger committed Mar 31, 2016
1 parent 81ab615 commit 85414a2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions etc/docker/ubuntu-with-gnupg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,23 @@ ENV USER user
ENV HOME /home/$USER
RUN useradd -m $USER

# GPG CONFIG & KEYS
# GPG CONFIG & ASCII KEYS
ADD .gnupg/ $HOME/.gnupg/
RUN chown -R $USER:$USER $HOME
RUN chmod -R go-rwsx $HOME

# NIX DIR & GROUP
# INSTALL NIX
RUN mkdir /nix
RUN chown -R $USER:$USER /nix
RUN groupadd -r nixbld

# INSTALL NIX
CMD /bin/bash -l
WORKDIR $HOME
USER $USER
RUN curl -s https://nixos.org/nix/install | sh
RUN echo "\nsource /nix/var/nix/profiles/default/etc/profile.d/nix.sh" \
| tee -a $HOME/.bash_profile

# GNUPG PROFILES
# GNUPGs IN PROFILES
RUN bash -lc "nix-env -p /nix/var/nix/profiles/gpg14 -iA nixpkgs.nix nixpkgs.gnupg1orig"
RUN bash -lc "nix-env -p /nix/var/nix/profiles/gpg20 -iA nixpkgs.nix nixpkgs.gnupg20"
RUN bash -lc "nix-env -p /nix/var/nix/profiles/gpg21 -iA nixpkgs.nix nixpkgs.gnupg"
Expand Down

0 comments on commit 85414a2

Please sign in to comment.