forked from noraj/haiti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 823 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Official verified image
FROM ruby:3.2.2-alpine3.17
# Metadata
LABEL org.opencontainers.image.title="haiti" \
org.opencontainers.image.description="Hash type identifier (CLI & lib)." \
org.opencontainers.image.authors="noraj (Alexandre ZANNI)" \
org.opencontainers.image.vendor="noraj (Alexandre ZANNI)" \
org.opencontainers.image.documentation="https://noraj.github.io/haiti/" \
org.opencontainers.image.source="https://github.com/noraj/haiti" \
org.opencontainers.image.licenses="MIT"
ARG HAITI_VERSION
LABEL org.opencontainers.image.version="$HAITI_VERSION"
## INSTALL ##
# Install the app
RUN gem install haiti-hash -v $HAITI_VERSION --no-document
## BUILD ##
# drop privileges
RUN adduser -s /bin/true -u 1337 -D -H noraj
USER noraj
CMD ["/usr/local/bundle/bin/haiti", "-h"]