-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (20 loc) · 919 Bytes
/
Dockerfile
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
# Build
FROM golang:1 as build
ADD . /app
WORKDIR /app
RUN go test ./...
RUN CGO_ENABLED=0 GOOS=linux go build -o aws-security-connectors .
# Run
FROM alpine
LABEL org.opencontainers.image.authors="Dmitry Verkhoturov <[email protected]>" \
org.opencontainers.image.description="AWS Security Connectors" \
org.opencontainers.image.documentation="https://github.com/bookingcom/aws-security-connectors" \
org.opencontainers.image.licenses="Apache 2.0" \
org.opencontainers.image.source="https://github.com/bookingcom/aws-security-connectors.git" \
org.opencontainers.image.title="aws-security-connectors" \
org.opencontainers.image.vendor="Booking.com"
RUN apk add --update ca-certificates && update-ca-certificates
RUN adduser -s /bin/false -S connectors
COPY --from=build /app/aws-security-connectors /usr/bin
USER connectors
ENTRYPOINT ["/usr/bin/aws-security-connectors"]