Skip to content

arsalanses/Nix-flake-for-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix Flake for Docker

Description

This project is a simple example of how to use Nix flake to create a Docker image.

Prerequisites

You will need the following software installed on your machine before running this project:

  • Nix (version 2.4 or higher)
  • Docker (version 19+)

Getting Started

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>

Usage

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.

Contributing

If you would like to contribute to this project, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published