Skip to content

Commit

Permalink
Improve Docker-based build
Browse files Browse the repository at this point in the history
The `--version` command now will show git metadata.
The build is done on an older version of Debian, too, for older
glibc linking.
  • Loading branch information
bradlarsen committed Aug 17, 2023
1 parent 62f7240 commit 1cb358b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.buildx-cache
.git
.gitattributes
.github
.gitignore
.gitattributes
CHANGELOG.md
README.md
docs
Expand Down
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
################################################################################
# Build `noseyparker`
#
# We use the oldest Debian-based image that can build Nosey Parker without trouble.
# This is done in an effort to link against an older glibc, so that the built
# binary (which is *not* statically linked, but does not dynamically link with
# non-standard runtime libraries) can be copied out of the container and run on
# more Linux machines than would otherwise be possible.
#
# See https://github.com/praetorian-inc/noseyparker/issues/58.
################################################################################
FROM rust:1.70 AS builder
FROM rust:1.71-bullseye AS builder

# Install dependencies
#
Expand Down

0 comments on commit 1cb358b

Please sign in to comment.