-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (23 loc) · 724 Bytes
/
Dockerfile
File metadata and controls
27 lines (23 loc) · 724 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
FROM golang:1.10-alpine as build
ARG github_auth_token
RUN apk add --no-cache git wget gcc musl-dev curl
WORKDIR /go/src/github.com/BankEx/ebh/
COPY . .
RUN git config --global url."https://${github_auth_token}:x-oauth-basic@github.com/".insteadOf 'https://github.com/'
RUN go get -v
#if you want include default config
#RUN mv config.y*ml /go/bin
RUN go build -o /go/bin/ebh .
FROM alpine:3.8
RUN mkdir /app && chmod 755 /app
WORKDIR /app/
RUN apk add --no-cache wget ca-certificates
COPY --from=build /go/bin/ebh /app/ebh
RUN chmod +x /app/ebh
RUN mkdir /etc/bankex && chmod 777 /etc/bankex
VOLUME /etc/bankex
#if you want include default config
COPY ./config ./config
COPY ./docs ./docs
EXPOSE 8002
CMD ["/app/ebh"]