mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-26 04:22:08 +00:00
Example of building the Docker image using Nix inside Docker
This commit is contained in:
parent
77a36d45eb
commit
755361b932
13
Dockerfile.nix
Normal file
13
Dockerfile.nix
Normal file
@ -0,0 +1,13 @@
|
||||
# Build the image and get out the docker file:
|
||||
#
|
||||
# docker build -t tgi-nix -f Dockerfile.nix
|
||||
# docker run --rm --volume $PWD/data:/data tgi-nix cp -H result /data/tgi-docker.tar.gz
|
||||
# docker load < tgi-docker.tar.gz
|
||||
|
||||
FROM nixos/nix:2.18.8
|
||||
RUN echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
||||
RUN nix profile install nixpkgs#cachix
|
||||
RUN cachix use text-generation-inference
|
||||
WORKDIR /root
|
||||
ADD . .
|
||||
RUN nix build .#dockerImage
|
Loading…
Reference in New Issue
Block a user