-
Notifications
You must be signed in to change notification settings - Fork 27
/
debian_11.Dockerfile
27 lines (19 loc) · 1 KB
/
debian_11.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM debian:bullseye
#Docker RUN example, pass in the git-lfs checkout copy you are working with
LABEL RUN="docker run -v git-lfs-checkout-dir:/src -v repo_dir:/repo"
RUN dpkg --add-architecture i386
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \
apt-get install -y --no-install-recommends gettext git dpkg-dev dh-golang asciidoctor curl build-essential gcc-i686-linux-gnu libc6-dev:i386
ARG GOLANG_VERSION=1.23.1
ARG GOLANG_SHA256=49bbb517cfa9eee677e1e7897f7cf9cfdbcf49e05f61984a2789136de359f9bd
ARG GOLANG_ARCH=amd64
ENV GOROOT=/usr/local/go
ENV GOTOOLCHAIN=local
RUN cd /usr/local && \
curl -L -O https://golang.org/dl/go${GOLANG_VERSION}.linux-${GOLANG_ARCH}.tar.gz && \
[ "$(sha256sum go${GOLANG_VERSION}.linux-${GOLANG_ARCH}.tar.gz | cut -d' ' -f1)" = "${GOLANG_SHA256}" ] && \
tar zxf go${GOLANG_VERSION}.linux-${GOLANG_ARCH}.tar.gz && \
ln -s /usr/local/go/bin/go /usr/bin/go && \
ln -s /usr/local/go/bin/gofmt /usr/bin/gofmt
COPY debian_script.bsh /tmp/
CMD /tmp/debian_script.bsh