mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 00:12:08 +00:00
14 lines
443 B
Docker
14 lines
443 B
Docker
|
# 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
|