-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Dockerfile
27 lines (21 loc) · 855 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
27
# Official verified image
# https://hub.docker.com/_/ruby
FROM ruby:3.3.6-alpine3.19
# 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"]