forked from CovenantSQL/CovenantSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 739 Bytes
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
# Stage: builder
FROM golang:1.10-stretch as builder
WORKDIR /go/src/github.com/CovenantSQL/CovenantSQL
COPY . .
RUN CGO_ENABLED=1 GOOS=linux GOLDFLAGS="-linkmode external -extldflags -static" ./build.sh
# Stage: runner
FROM alpine:3.7
ARG COMMIT
ARG VERSION
LABEL \
name="covenantsql" \
homepage="https://github.com/CovenantSQL/CovenantSQL.git" \
maintainer="qi.xiao@covenantsql.io" \
authors="CovenantSQL Team" \
commit="${COMMIT}" \
version="${VERSION}"
ENV VERSION=${VERSION}
ENV COVENANT_ROLE=miner
ENV COVENANT_CONF=config.yaml
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /go/src/github.com/CovenantSQL/CovenantSQL/bin/* /app/
ENTRYPOINT [ "./docker-entry.sh" ]
EXPOSE 4661