This project is a simple example of how to use Nix flake to create a Docker image.
You will need the following software installed on your machine before running this project:
- Nix (version 2.4 or higher)
- Docker (version 19+)
To get started, clone the repository by running the following command:
git clone https://github.com/arsalanses/nix-flake-for-docker.git
Then, navigate to the project directory:
cd <project-name>
To build the Docker image, run the following command:
nix build .#
docker load < result
This will create a Docker image named mycurl
in the project directory.
To run the Docker image, use the following command:
docker run --rm -it mycurl:0.1.0
This will start a container running the mycurl
image.
If you would like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the MIT License.