From 92785ff727a977626085654a07363345e0a256fb Mon Sep 17 00:00:00 2001 From: Selman Kayrancioglu Date: Thu, 3 Dec 2020 11:30:14 +0300 Subject: [PATCH] dockerfile: disable CGO (#256) Fixes #250 --- CHANGELOG.md | 9 +++++++++ Dockerfile | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a21251b24..4dd669d8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## not released yet + + +## v1.2.1 - 2 Dec 2020 + +#### Improvements + +- Statically link `s5cmd` in Docker image ([#250](https://github.com/peak/s5cmd/issues/250)) + ## v1.2.0 - 5 Nov 2020 With this release, `s5cmd` automatically determines region information of destination buckets. diff --git a/Dockerfile b/Dockerfile index bd8ea1ef0..8de42ed1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM golang:1.14-alpine as build +FROM golang:1.15-alpine as build COPY . /s5cmd/ RUN apk add --no-cache git make && \ cd /s5cmd/ && \ - make build + CGO_ENABLED=0 make build FROM alpine:3.12 COPY --from=build /s5cmd/s5cmd .