Create Dockerfile for building Deb package

This commit is contained in:
Scott Hardin 2020-10-22 00:19:09 -07:00
parent 0fcd59e1e3
commit 464ebcd69b
2 changed files with 28 additions and 0 deletions

17
util/debian/Dockerfile Normal file
View File

@ -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"]

11
util/debian/README.md Normal file
View File

@ -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.