-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM golang:latest as go-builder | ||
MAINTAINER Valentin Kuznetsov [email protected] | ||
|
||
# build procedure | ||
ENV PROJECT=DataBookkeeping | ||
ENV WDIR=/data | ||
WORKDIR $WDIR | ||
RUN mkdir /build | ||
RUN git clone https://github.com/CHESSComputing/$PROJECT | ||
ARG CGO_ENABLED=0 | ||
RUN cd $PROJECT && make && cp srv /build | ||
|
||
# build final image for given image | ||
# FROM alpine as final | ||
# RUN mkdir -p /data | ||
FROM gcr.io/distroless/static as final | ||
COPY --from=go-builder /build/srv /data |