Skip to content

Instantly share code, notes, and snippets.

@cemtopkaya
Created March 13, 2023 05:25
Show Gist options
  • Save cemtopkaya/427ac63434f8624c294eae0585ba9c06 to your computer and use it in GitHub Desktop.
Save cemtopkaya/427ac63434f8624c294eae0585ba9c06 to your computer and use it in GitHub Desktop.
version: "3.9"
services:
# builder:
# build:
# context: .
# args:
# - OUT_DIR=/out
# volumes:
# - ./out:/out
build-dpkg-deb:
image: ubuntu:latest
# image: ubuntu:xenial
container_name: build-dpkg-deb
volumes:
- ./proje/src/main.cpp:/proje/src/main.cpp
- ./proje/debian:/proje/debian
working_dir: /proje
command:
- /bin/bash
- -c
- |
apt-get update
apt-get -y install dpkg-dev
dpkg-deb -b . deneme.deb
tail -f /dev/null
# dpkg-buildpackage -us -uc
build-dpkg-buildpackage:
# image: ubuntu:latest
image: jammy-dpkg-dev
container_name: build-dpkg-buildpackage
volumes:
- ./proje/src/main.cpp:/proje/src/main.cpp
- ./proje/debian:/proje/debian
working_dir: /proje
command:
- /bin/bash
- -c
- |
apt-get update
apt-get -y install dpkg-dev
dpkg-buildpackage -us -uc
tail -f /dev/null
# build-essential devscripts debhelper dh-make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment