Skip to content

Commit

Permalink
Switch awscli to Python 2; update version
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Dmytrenko committed Sep 11, 2019
1 parent 4743f67 commit aa4c508
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ RUN VERSION=$(git describe --always --long) && \
cd cmd && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s -X main.version=${VERSION} -X main.builddt=${DT} -X main.semver=${SEMVER} -X main.branch=${BRANCH}" -o /build/${PROJECT_NAME}


## awscli + app
##
FROM python:3.7-alpine3.10
RUN pip install --no-cache-dir awscli==1.16.232

# awscli has bug syncing empty files under Python3, thus using Python2
# https://github.com/aws/aws-cli/issues/2403
FROM python:2.7-alpine3.10
RUN pip install --no-cache-dir awscli==1.16.236

# vmbackup app
ENV BINARY vmbackup-sidecar
Expand Down

0 comments on commit aa4c508

Please sign in to comment.