Skip to content

Instantly share code, notes, and snippets.

@B1zzy1
B1zzy1 / harden.sh
Last active August 10, 2021 14:36 — forked from kost/harden.sh
hardening script for an alpine docker container
#!/bin/sh
set -x
set -e
#
# Docker build calls this script to harden the image during build.
#
# NOTE: To build on CircleCI, you must take care to keep the `find`
# command out of the /proc filesystem to avoid errors like:
#
# find: /proc/tty/driver: Permission denied

Keybase proof

I hereby claim:

  • I am b1zzy1 on github.
  • I am b1zzy (https://keybase.io/b1zzy) on keybase.
  • I have a public key ASA7vEoX0r-ygEUqH7SrZlfUry3Kr7eY79yM1alFIyIXQgo

To claim this, I am signing this object: