aboutsummaryrefslogtreecommitdiffhomepage
path: root/alpine
diff options
context:
space:
mode:
Diffstat (limited to 'alpine')
-rw-r--r--alpine/Dockerfile13
1 files changed, 11 insertions, 2 deletions
diff --git a/alpine/Dockerfile b/alpine/Dockerfile
index 1b3d229..0e42345 100644
--- a/alpine/Dockerfile
+++ b/alpine/Dockerfile
@@ -36,8 +36,17 @@ RUN nix-channel --add https://nixos.org/channels/nixpkgs-19.09-darwin nixpkgs \
36# Propagate UTF8 36# Propagate UTF8
37# https://github.com/NixOS/nix/issues/599#issuecomment-153885553 37# https://github.com/NixOS/nix/issues/599#issuecomment-153885553
38# The same is hapenning with stack2nix 38# The same is hapenning with stack2nix
39RUN nix-env -iA nixpkgs.glibcLocales \ 39RUN nix-env -iA nixpkgs.glibcLocales
40 && echo "export LOCALE_ARCHIVE=$(nix-env --installed --no-name --out-path --query glibc-locales)/lib/locale/locale-archive" >> ${HOME}/.profile 40
41# < Nix context as a volume
42# We want to be able to define /nix/store as a volume
43# We thus need to "save" the current nix context to be able
44# to restore it at startup time
45RUN cp -R /nix /home/nixuser/initial-nix
46VOLUME ["/nix"]
47# Create bash profile
48COPY --chown=nixuser:nixuser files/.profile ${HOME}/.profile
49# />
41 50
42# Make sure to use "login" shell when running container 51# Make sure to use "login" shell when running container
43ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"] 52ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"]