Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Run rds_exporter as non-privileged user
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Ustyuzhanin committed Jul 1, 2019
1 parent 18345fd commit bc30380
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.11.2 AS builder
FROM golang:1.12 AS builder

WORKDIR /go/src/github.com/hellofresh/rds_exporter
COPY . ./
Expand All @@ -11,7 +11,10 @@ RUN apt-get update -y \
ca-certificates \
python3-boto3 \
python3-yaml \
&& rm -rf /var/cache/apt/*
&& rm -rf /var/cache/apt/* \
&& useradd -ms /bin/bash rds_exporter

USER rds_exporter

COPY --from=builder /go/src/github.com/hellofresh/rds_exporter/rds_exporter /
COPY entry.py /
Expand Down

0 comments on commit bc30380

Please sign in to comment.