diff --git a/util/debian/Dockerfile b/util/debian/Dockerfile new file mode 100644 index 0000000..5962dfa --- /dev/null +++ b/util/debian/Dockerfile @@ -0,0 +1,17 @@ +FROM ubuntu:20.04 + +ARG GIT_TAG=master +ARG GIT_URL=https://github.com/lakinduakash/linux-wifi-hotspot/archive/${GIT_TAG}.tar.gz + +# Retrieve dependencies +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y debhelper devscripts build-essential pkg-config libgtk-3-dev + +# Clone source code +WORKDIR /root +RUN curl -L --output linux-wifi-hotspot.tar.gz --silent ${GIT_URL} +RUN tar -xzf linux-wifi-hotspot.tar.gz + +WORKDIR /root/linux-wifi-hotspot-${GIT_TAG} +RUN debuild -uc -us + +ENTRYPOINT ["/bin/bash"] diff --git a/util/debian/README.md b/util/debian/README.md new file mode 100644 index 0000000..0eb1ee1 --- /dev/null +++ b/util/debian/README.md @@ -0,0 +1,11 @@ +# Debian Build Docker Image + +The Dockerfile in this directory can be used to build the debian package for this project. + +1. `docker build . -t linux-wifi-hotspot-deb` +2. `docker run -it linux-wifi-hotspot-deb` +3. `cd /root` + +All build artifacts will be located in the `/root` directory. + +4. Use `docker cp` to copy the desired artifacts out of the container.