1- FROM golang:1.21.3 -alpine as base
1+ FROM golang:1.21.10 -alpine AS base
22
33# ###############################################################################
44#
@@ -19,19 +19,19 @@ FROM golang:1.21.3-alpine as base
1919#
2020# ###############################################################################
2121
22- FROM docker:24.0.6-git 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
25- ENV GOPATH /go
26- ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
27- ENV GOLANG_VERSION 1.21.3
25+ ENV GOPATH= /go
26+ ENV PATH= $GOPATH/bin:/usr/local/go/bin:$PATH
27+ ENV GOLANG_VERSION= 1.21.10
2828
2929RUN apk update && \
3030 apk add --virtual .build-deps autoconf automake build-base linux-headers libffi-dev
3131RUN apk add --no-cache bash git openssh-client-default gcc squashfs-tools sudo libtool gawk ca-certificates libseccomp libseccomp-dev
3232RUN 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 4.1.0
34+ ENV SINGULARITY_VERSION= 4.1.4
3535RUN mkdir -p /usr/local/var/singularity/mnt && \
3636 mkdir -p $GOPATH/src/github.com/sylabs && \
3737 cd $GOPATH/src/github.com/sylabs && \
@@ -45,14 +45,14 @@ RUN mkdir -p /usr/local/var/singularity/mnt && \
4545# See https://docs.docker.com/develop/develop-images/multistage-build/
4646# for more information on multi-stage builds.
4747
48- FROM docker:18.09.8
49- LABEL Maintainer @vsoch
48+ FROM docker:24.0.6-git
49+ LABEL Maintainer= @vsoch
5050COPY --from=builder /usr/local/singularity /usr/local/singularity
51- RUN apk add --no-cache ca-certificates libseccomp squashfs-tools bash python rsync
51+ RUN apk add --no-cache ca-certificates libseccomp libseccomp-dev squashfs-tools bash python3 rsync
5252ENV PATH="/usr/local/singularity/bin:$PATH"
5353
54- ADD docker2singularity.sh /docker2singularity.sh
55- ADD addLabel.py /addLabel.py
56- ADD scripts /scripts
54+ COPY docker2singularity.sh /docker2singularity.sh
55+ COPY addLabel.py /addLabel.py
56+ COPY scripts /scripts
5757RUN chmod a+x docker2singularity.sh
5858ENTRYPOINT ["docker-entrypoint.sh" , "/docker2singularity.sh" ]
0 commit comments