3 ms·
From memory, not tested, not spell-checked: FROM nixos/nix RUN nix-channel --update RUN nix-env -i python2.7-{twisted,treq,txgithub} WORKDIR /a
by myWindoonn 8y ago
From memory, not tested, not spell-checked:
FROM nixos/nix
RUN nix-channel --update
RUN nix-env -i python2.7-{twisted,treq,txgithub}
WORKDIR /app
ADD . /app
EXPOSE 8080/tcp
CMD python notify.py
The next level would be using the nixpkgs Docker builder directly: https://nixos.org/nixpkgs/manual/#sec-pkgs-dockerTools https://nixos.org/nixpkgs/manual/#sec-pkgs-dockerTools