Skip to content

Commit

Permalink
Dockerfile: use docker to build Linux compat bin
Browse files Browse the repository at this point in the history
I use NixOS, so this is for release

Signed-off-by: Dylan Turner <dylan.turner@tutanota.com>
  • Loading branch information
blueOkiris committed Aug 24, 2024
1 parent 9ef0c84 commit 1565366
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set up Debian as a build system

FROM debian:latest
RUN apt-get update && apt-get install -y \
build-essential

# Set up environment to build for Debian
WORKDIR /proj
ENTRYPOINT [ "make -j$(nproc)" ]

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@ From a folder with an `acbs.ini` file, run the following commands:

You can optionally specify the folder containing an acbs.ini by providing it as a second argument.

## Build

Use docker. We have a Dockerfile in the main directory which will build an x86\_64 Linux compatible binary via Debian

Build Image: `docker build -t acbs-bldr .`
Run Image: `docker run --rm -v .:/proj -e HOST_UID=$(id -u) -e HOST_GID=$(id -g) acbs-bldr`

0 comments on commit 1565366

Please sign in to comment.