-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build docker image from current build, not static version (#83)
- Loading branch information
Showing
2 changed files
with
9 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
FROM alpine:3.5 | ||
FROM alpine:3.6 | ||
|
||
ENV SCEP_VERSION=v1.0.0 | ||
RUN apk --no-cache add curl unzip && \ | ||
curl -L https://github.com/micromdm/scep/releases/download/${SCEP_VERSION}/scep.zip -o /scep.zip && \ | ||
unzip -p /scep.zip build/scepserver-linux-amd64 > /scep && \ | ||
rm /scep.zip && \ | ||
chmod a+x /scep && \ | ||
apk del curl unzip && \ | ||
echo 'b4af438c2cb0f9dda7a8253e49f6c9ec71492ebfe85c25334c16ed4a0499ebc4 scep' | sha256sum -c | ||
COPY ./build/scepserver-linux-amd64 /usr/bin/scepserver | ||
COPY ./build/scepclient-linux-amd64 /usr/bin/scepclient | ||
|
||
EXPOSE 8080 | ||
VOLUME ["/depot"] | ||
CMD ["/scep"] | ||
|
||
ENTRYPOINT ["scepserver"] |
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