Created
October 11, 2019 21:46
-
-
Save djmaze/fcaeda42f47354ce6fb4928a26132e69 to your computer and use it in GitHub Desktop.
Restic compile error with Go 1.13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.13.1-buster | |
ARG RESTIC_VERSION=0.9.5 | |
ARG RESTIC_SHA256=e22208e946ede07f56ef60c1c89de817b453967663ce4867628dff77761bd429 | |
RUN curl -sL -o restic.tar.gz https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic-${RESTIC_VERSION}.tar.gz \ | |
&& echo "${RESTIC_SHA256} restic.tar.gz" | sha256sum -c - \ | |
&& tar xzf restic.tar.gz \ | |
&& cd restic-${RESTIC_VERSION} \ | |
&& go run build.go \ | |
&& mv restic /usr/local/bin/restic \ | |
&& cd .. \ | |
&& rm restic.tar.gz restic-${RESTIC_VERSION} -fR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compile error: