~gsthnz/satellite

ref: 08c1a5a59b68a33880f45218cdfad85b6e1b7c65 satellite/Dockerfile -rw-r--r-- 506 bytes
08c1a5a5Paper Set minimum TLS version to TLS 1.2 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.15 AS builder

WORKDIR /app
COPY . /app

ENV CGO_ENABLED=0
RUN \
   go mod download -x && \
   go build -v -o /tmp/satellite .

FROM alpine:3.12 AS worker

WORKDIR /app
VOLUME /config
VOLUME /data

RUN adduser -D -u 1000 satellite && \
    mkdir -p /config && chown satellite /config && chmod 700 /config && \
    mkdir -p /data && chown satellite /data && chmod 700 /data

COPY --from=builder /tmp/satellite /app/satellite

USER satellite
CMD ["/app/satellite", "-c", "/config/config.toml"]