mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-21 19:40:11 +00:00
Create Dockerfile for building Deb package
This commit is contained in:
parent
0fcd59e1e3
commit
464ebcd69b
17
util/debian/Dockerfile
Normal file
17
util/debian/Dockerfile
Normal 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
11
util/debian/README.md
Normal 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.
|
Loading…
Reference in New Issue
Block a user