Last active
November 15, 2018 14:18
-
-
Save jasongerard/eaa6d6e29d118fe77c0511c64be70ae9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.8 | |
RUN apk add libcap && \ | |
mkdir -p /home/appuser && \ | |
addgroup -S app && \ | |
adduser -u 1000 -S -h /home/appuser -G app appuser | |
WORKDIR /home/appuser | |
COPY app.o . | |
RUN chown -R appuser:app /home/appuser | |
RUN setcap cap_ipc_lock=+ep app.o | |
USER appuser | |
CMD ["./app.o"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment