Revision e12d5f81eecead2215248dcedb70cc8b9d140762 authored by Maciej Kwiek on 18 August 2020, 11:12:08 UTC, committed by Maciej Kwiek on 18 August 2020, 11:12:08 UTC
This reverts commit fef1a0d4f6f95e7843a25a9eeb439482aa95156a.
1 parent e7d3804
Raw File
Dockerfile.builder
#
# Cilium build-time base image (image created from this file is used to build Cilium)
#
FROM quay.io/cilium/cilium-runtime:2020-08-12@sha256:66f64622bf97a48ef249ad72ec7a851481460f9f18b9e9ad74f4553088b497a2
LABEL maintainer="maintainer@cilium.io"
ARG ARCH=amd64
WORKDIR /go/src/github.com/cilium/cilium

#
# Env setup for Go (installed below)
#
ENV GOROOT /usr/local/go
ENV GOPATH /go
ENV PATH "$GOROOT/bin:$GOPATH/bin:$PATH"
ENV GO_VERSION 1.15

#
# Build dependencies
#
RUN apt-get update && \
    apt-get upgrade -y --no-install-recommends && \
    apt-get install -y --no-install-recommends \
      # Base Cilium-build dependencies
      binutils \
      coreutils \
      curl \
      gcc \
      git \
      libc6-dev \
      libelf-dev \
      make && \
    apt-get purge --auto-remove && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

#
# Install Go
#
RUN curl -sfL https://dl.google.com/go/go${GO_VERSION}.linux-${ARCH}.tar.gz | tar -xzC /usr/local && \
    go clean -cache -modcache
back to top