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

Commit

Permalink
Merge pull request #4 from hellofresh/patch/docker-build
Browse files Browse the repository at this point in the history
Patch docker build
  • Loading branch information
Anton Ustyuzhanin authored Jul 1, 2019
2 parents c4bf39f + bc30380 commit b48d61b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git/
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 b48d61b

Please sign in to comment.