Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
33 lines (28 loc) · 1.26 KB

File metadata and controls

33 lines (28 loc) · 1.26 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
33
FROM golang:1.16-stretch as build
RUN apt-get update \
&& apt-get install -y bzip2 gzip unzip curl openssh-client
RUN curl -sLo /bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \
&& chmod 0755 /bin/jq
ARG VERSION
COPY / /go/src/github.com/shieldproject/shield/
RUN cd /go/src/github.com/shieldproject/shield \
&& make build BUILD_TYPE="build -ldflags='-X main.Version=$VERSION'"
RUN mkdir -p /dist/bin /dist/plugins \
&& mv /go/src/github.com/shieldproject/shield/shieldd \
/go/src/github.com/shieldproject/shield/shield-agent \
/go/src/github.com/shieldproject/shield/shield-crypt \
/go/src/github.com/shieldproject/shield/shield-report \
/go/src/github.com/shieldproject/shield/shield-schema \
/go/src/github.com/shieldproject/shield/bin/shield-pipe \
/dist/bin \
&& for plugin in $(cat /go/src/github.com/shieldproject/shield/plugins); do \
cp /go/src/github.com/shieldproject/shield/$plugin /dist/plugins; \
done \
&& cp -R /go/src/github.com/shieldproject/shield/web/htdocs /dist/ui
ADD init /dist/init
RUN chmod 0755 /dist/init/*
FROM ubuntu:xenial-20210416
RUN apt-get update \
&& apt-get install -y bzip2 gzip curl openssh-client \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /dist /shield
Morty Proxy This is a proxified and sanitized view of the page, visit original site.