From 066f867bc6d7107ac2c905d3fc6f01ad54159ea1 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 21 Nov 2020 13:59:18 +0200
Subject: [PATCH] Leaner Docker image.

Just the Docker image and Docker Compose installed from the Alpine
repositories.
---
 Dockerfile | 24 ++----------------------
 1 file changed, 2 insertions(+), 22 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 45746d5..2e5e811 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,22 +1,2 @@
-FROM golang:1.10-alpine as ecs
-RUN apk add --update --no-cache git build-base
-RUN go get github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login
-RUN wget https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest && \
-    install -m755 ecs-cli-linux-amd64-latest /usr/local/bin/ecs-cli
-RUN wget https://storage.googleapis.com/kubernetes-release/release/$(wget -O - https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
-    install -m755 kubectl /usr/local/bin/
-
-FROM gcr.io/heptio-images/authenticator:v0.3.0-alpine-3.7 as authenticator
-FROM docker:latest as docker
-
-FROM python:3.7-alpine3.7
-COPY --from=docker /usr/local/bin/docker /usr/local/bin/
-COPY --from=ecs /go/bin/docker-credential-ecr-login /usr/local/bin/ecs-cli /usr/local/bin/kubectl /usr/local/bin/
-COPY --from=authenticator /heptio-authenticator-aws /usr/local/bin/
-RUN pip install --no-cache-dir --progress-bar=off awscli docker-compose && \
-    { docker version || true; } && \
-    docker-credential-ecr-login version && \
-    ecs-cli --version && \
-    kubectl version --client && \
-    aws --version && \
-    docker-compose --version
+FROM docker:19.03
+RUN apk add --update-cache --no-cache docker-compose
-- 
GitLab