From 6b6b1ac0648b7f2535cdfbcd1883c76bfba49826 Mon Sep 17 00:00:00 2001 From: Liran Funaro Date: Mon, 13 Feb 2023 15:39:08 +0200 Subject: [PATCH] Change docker image to Ubuntu Signed-off-by: Liran Funaro --- images/Dockerfile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/images/Dockerfile b/images/Dockerfile index 9b0a610c..9763d84e 100644 --- a/images/Dockerfile +++ b/images/Dockerfile @@ -1,21 +1,21 @@ ARG GO_VER=1.19 -ARG ALPINE_VER=3.17 +ARG UBUNTU_VER=20.04 -FROM alpine:${ALPINE_VER} as orion-base -RUN apk add --no-cache tzdata +FROM ubuntu:${UBUNTU_VER} as orion-base +RUN apt-get update && apt-get install -y --no-install-recommends tzdata && rm -rf /val/lib/apt/lists/* RUN echo 'hosts: files dns' > /etc/nsswitch.conf RUN mkdir -p /etc/orion-server/config RUN mkdir -p /etc/orion-server/crypto RUN mkdir -p /var/orion-server/ledger -FROM golang:${GO_VER}-alpine${ALPINE_VER} as golang -RUN apk add --no-cache \ - bash \ - binutils-gold \ - gcc \ - git \ - make \ - musl-dev +FROM golang:${GO_VER} as golang +RUN apt-get update && apt-get install -y --no-install-recommends \ + bash \ + binutils-gold \ + gcc \ + git \ + make \ + musl-dev && rm -rf /val/lib/apt/lists/* ADD . $GOPATH/src/github.com/hyperledger-labs/orion-server WORKDIR $GOPATH/src/github.com/hyperledger-labs/orion-server