1- FROM golang:1.18.10 -alpine as base
1+ FROM golang:1.21.3 -alpine as base
22
33# ###############################################################################
44#
@@ -19,19 +19,19 @@ FROM golang:1.18.10-alpine as base
1919#
2020# ###############################################################################
2121
22- FROM docker:18.09.8 as builder
22+ FROM docker:24.0.6-git as builder
2323COPY --from=base /go /go
2424COPY --from=base /usr/local/go /usr/local/go
2525ENV GOPATH /go
2626ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
27- ENV GOLANG_VERSION 1.18.10
27+ ENV GOLANG_VERSION 1.21.3
2828
2929RUN apk update && \
30- apk add --virtual automake build-base linux-headers libffi-dev
30+ apk add --virtual .build-deps autoconf automake build-base linux-headers libffi-dev
3131RUN apk add --no-cache bash git openssh gcc squashfs-tools sudo libtool gawk ca-certificates libseccomp libseccomp-dev
32- RUN apk add --no-cache linux-headers build-base openssl-dev util-linux util-linux-dev python rsync cryptsetup glib-dev
32+ RUN apk add --no-cache linux-headers build-base openssl-dev util-linux util-linux-dev shadow-uidmap fuse3-dev python3 rsync cryptsetup glib-dev
3333
34- ENV SINGULARITY_VERSION 3.11.4
34+ ENV SINGULARITY_VERSION 4.0.1
3535RUN mkdir -p /usr/local/var/singularity/mnt && \
3636 mkdir -p $GOPATH/src/github.com/sylabs && \
3737 cd $GOPATH/src/github.com/sylabs && \
@@ -56,4 +56,3 @@ ADD addLabel.py /addLabel.py
5656ADD scripts /scripts
5757RUN chmod a+x docker2singularity.sh
5858ENTRYPOINT ["docker-entrypoint.sh" , "/docker2singularity.sh" ]
59-
0 commit comments