1
- FROM golang:1.21.3 -alpine as base
1
+ FROM golang:1.21.10 -alpine AS base
2
2
3
3
# ###############################################################################
4
4
#
@@ -19,19 +19,19 @@ FROM golang:1.21.3-alpine as base
19
19
#
20
20
# ###############################################################################
21
21
22
- FROM docker:24.0.6-git as builder
22
+ FROM docker:24.0.6-git AS builder
23
23
COPY --from=base /go /go
24
24
COPY --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
28
28
29
29
RUN apk update && \
30
30
apk add --virtual .build-deps autoconf automake build-base linux-headers libffi-dev
31
31
RUN apk add --no-cache bash git openssh-client-default gcc squashfs-tools sudo libtool gawk ca-certificates libseccomp libseccomp-dev
32
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
33
33
34
- ENV SINGULARITY_VERSION 4.1.0
34
+ ENV SINGULARITY_VERSION= 4.1.4
35
35
RUN mkdir -p /usr/local/var/singularity/mnt && \
36
36
mkdir -p $GOPATH/src/github.com/sylabs && \
37
37
cd $GOPATH/src/github.com/sylabs && \
@@ -45,14 +45,14 @@ RUN mkdir -p /usr/local/var/singularity/mnt && \
45
45
# See https://docs.docker.com/develop/develop-images/multistage-build/
46
46
# for more information on multi-stage builds.
47
47
48
- FROM docker:18.09.8
49
- LABEL Maintainer @vsoch
48
+ FROM docker:24.0.6-git
49
+ LABEL Maintainer= @vsoch
50
50
COPY --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
52
52
ENV PATH="/usr/local/singularity/bin:$PATH"
53
53
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
57
57
RUN chmod a+x docker2singularity.sh
58
58
ENTRYPOINT ["docker-entrypoint.sh" , "/docker2singularity.sh" ]
0 commit comments