Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omrigan/nix-docker-2.4
https://github.com/omrigan/nix-docker-2.4
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/omrigan/nix-docker-2.4
- Owner: Omrigan
- License: lgpl-2.1
- Created: 2021-12-05T18:52:36.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-05T19:05:40.000Z (about 3 years ago)
- Last Synced: 2024-10-29T14:20:36.812Z (3 months ago)
- Language: Dockerfile
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
This image contains an installation of the [Nix package manager](https://nixos.org/nix/).
Use this build to create your own customized images as follows:
FROM nixos/nix
RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
RUN nix-channel --updateRUN nix-build -A pythonFull ''
### Limitations
By default [sandboxing](https://nixos.org/manual/nix/stable/#conf-sandbox) is turned off
inside the container, even though it is enabled in new installations of nix. This
can lead to differences between derivations built inside a docker container versus those built
without any containerization, especially if a derivation relies on sandboxing to block
sideloading of dependencies.To enable sandboxing the container has to be started with the
[`--privileged`](https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities)
flag and `sandbox = true` set in `/etc/nix/nix.conf`.