Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

most of #80 (took Dockerfile, Makefile and go.mod) #1

Merged
merged 4 commits into from
Sep 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,21 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.12.9 AS build

FROM alpine:3.4
MAINTAINER Timothy St. Clair "tstclair@heptio.com"
WORKDIR /src/
COPY . .

RUN CGO_ENABLED=0 go build -o /src/eventrouter

FROM alpine:3.9 as release

WORKDIR /app
RUN apk update --no-cache && apk add ca-certificates
ADD eventrouter /eventrouter
COPY --from=build /src/eventrouter .
USER nobody:nobody

CMD ["/bin/sh", "-c", "/eventrouter -v 3 -logtostderr"]
ENTRYPOINT [ "./eventrouter" ]
CMD ["-v", "3", "-logtostderr"]

Loading