Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
Alpine 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
J0WI committed Jan 17, 2021
1 parent 5960413 commit db731c4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions alpine/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#
# SPDX-License-Identifier: MIT
#
# pinning builder image to Alpine 3.11.5
# pinning builder image to Alpine 3.13.0
###############################################################
FROM registry.hub.docker.com/library/alpine:3.11.5 AS builder
FROM registry.hub.docker.com/library/alpine:3.13.0 AS builder

###############################################################
# set build args
Expand All @@ -30,13 +30,13 @@ RUN apk --update add libssh2 libssh2-dev libssh2-static \
nghttp2

RUN mkdir /src
COPY "curl" "/src/curl"
COPY "curl" "/src/curl"
WORKDIR /src/curl

###############################################################
# get ca cert bundle from curl.haxx.se
###############################################################
RUN curl https://curl.haxx.se/ca/cacert.pem -o /cacert.pem
RUN curl -fsSL -o /cacert.pem https://curl.haxx.se/ca/cacert.pem

###############################################################
# build the tag version
Expand All @@ -46,12 +46,12 @@ RUN ./buildconf && \
./configure ${CURL_CONFIGURE_OPTION} &&\
make -j$(nproc) &&\
#make test &&\
make DESTDIR="/alpine/" install -j$(nproc)
make DESTDIR="/alpine/" install -j$(nproc)

###############################################################
# pinning image to Alpine 3.11.5
# pinning image to Alpine 3.13.0
###############################################################
FROM registry.hub.docker.com/library/alpine:3.11.5
FROM registry.hub.docker.com/library/alpine:3.13.0

ARG CURL_RELEASE_TAG=latest
ARG CURL_RELEASE_VERSION
Expand All @@ -74,7 +74,8 @@ LABEL docker.cmd="docker run -it curl/curl:7.74.0 -s -L http://curl.haxx.se"
###############################################################
RUN apk update --no-cache && \
apk upgrade --no-cache && \
apk add --update --no-cache libssh2 nghttp2-dev && \
apk add --update --no-cache \
brotli-libs libssh2 nghttp2-libs zlib && \
rm -fr /var/cache/apk/*

###############################################################
Expand Down

0 comments on commit db731c4

Please sign in to comment.