-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
22 lines (19 loc) · 655 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.13.1 as builder
WORKDIR /go/src/github.com/t94j0/satellite
COPY . .
RUN cd satellite && CGO_ENABLED=0 GOOS=linux go build -a -o /root/satellite .
FROM alpine:latest
RUN apk --no-cache add ca-certificates openssl
# Configure satellite
## Run postinstall.sh
COPY ./.config/scripts/postinstall.sh /
RUN sh /postinstall.sh
## Merge .config with filesystem
RUN mkdir -p /etc/satellite /var/lib/satellite
COPY ./.config/etc/satellite/config.yml /etc/satellite/
COPY ./.config/var/lib/satellite/GeoLite2-Country.mmdb /var/lib/satellite/
WORKDIR /root/
COPY --from=builder /root/satellite .
RUN ls -la /root
EXPOSE 443
CMD ["/root/satellite"]