forked from mitre/heimdall_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 914 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
28
29
30
31
32
FROM ruby:2-alpine as builder
LABEL name="Heimdall Tools" \
vendor="MTIRE" \
version="${HEIMDALLTOOLS_VERSION}" \
release="1" \
url="https://github.com/mitre/heimdall_tools" \
description="HeimdallTools supplies several methods to convert output from various tools to \"Heimdall Data Format\"(HDF) format to be viewable in Heimdall" \
docs="https://github.com/mitre/heimdall_tools" \
run="docker run -d --name ${NAME} ${IMAGE} <args>"
RUN mkdir -p /share
RUN apk add --no-cache build-base git-lfs openssl-dev
COPY . /build
RUN cd /build && \
bundle install && \
gem build heimdall_tools.gemspec -o heimdall_tools.gem
FROM ruby:2-alpine
RUN apk add --no-cache build-base
COPY --from=builder /build/heimdall_tools.gem /build/
RUN gem install build/heimdall_tools.gem
RUN apk del build-base
ENTRYPOINT ["heimdall_tools"]
VOLUME ["/share"]
WORKDIR /share