-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (17 loc) · 735 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:1.18-alpine as base
LABEL description="Flowify build test environment"
LABEL org.opencontainers.image.source = "https://github.com/equinor/flowify-workflows-server"
RUN apk add git make binutils gcc musl-dev
FROM base as builder
RUN mkdir -p $GOPATH/src/github.com/equinor/
WORKDIR $GOPATH/src/github.com/equinor/flowify-workflows-server
# We should tighten this up
COPY . .
ARG FLOWIFY_GIT_SHA
RUN make strip=1 flowify_git_sha=${FLOWIFY_GIT_SHA}
FROM builder as tester
RUN go install github.com/jstemmer/[email protected]
RUN go install github.com/jandelgado/[email protected]
#RUN apk add nodejs
COPY --from=builder /go/src/github.com/equinor/flowify-workflows-server/build ./
CMD ["./flowify-workflows-server"]