mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
This introduces a docker image based off of ubuntu:bionic that can be used to compile Nomad binary against glibc 2.27. The image cannot build JS assets, which must be created before we compile the Go binary.
29 lines
564 B
Docker
29 lines
564 B
Docker
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
FROM ubuntu:bionic
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG GO_VERSION
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
bash \
|
|
build-essential \
|
|
ca-certificates \
|
|
crossbuild-essential-arm64 \
|
|
curl \
|
|
gcc-aarch64-linux-gnu \
|
|
git \
|
|
xz-utils \
|
|
zip
|
|
|
|
# Get Go and get Going ;)
|
|
RUN curl -L https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | tar -C /opt -zxv
|
|
|
|
ENV PATH="/root/go/bin:/opt/go/bin:$PATH"
|
|
|
|
RUN git config --global --add safe.directory /build
|
|
|
|
WORKDIR /build
|