Skip to content

Commit 38a647d

Browse files
author
朱红磊
committed
init
1 parent 37f6950 commit 38a647d

File tree

6 files changed

+80
-1
lines changed

6 files changed

+80
-1
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/alpine.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
FROM alpine:edge
2+
#default 3.14
3+
LABEL maintainer="[email protected]"
4+
5+
#设置国内镜像
6+
RUN echo 'https://mirrors.ustc.edu.cn/alpine/latest-stable/community' > /etc/apk/repositories
7+
RUN echo 'https://mirrors.ustc.edu.cn/alpine/latest-stable/main' >> /etc/apk/repositories
8+
RUN echo 'https://mirrors.ustc.edu.cn/alpine/edge/community' > /etc/apk/repositories
9+
RUN echo 'https://mirrors.ustc.edu.cn/alpine/edge/main' >> /etc/apk/repositories
10+
RUN echo 'https://mirrors.ustc.edu.cn/alpine/edge/testing' >> /etc/apk/repositories
11+
RUN apk update
12+
13+
#访问外部的https
14+
RUN apk add --no-cache ca-certificates
15+
16+
#访问外部的https及安装curl
17+
ENV CURL_VERSION 7.67.0
18+
19+
RUN apk add --update --no-cache openssl openssl-dev nghttp2-dev ca-certificates
20+
RUN apk add --update --no-cache --virtual curldeps g++ make perl && \
21+
wget https://curl.haxx.se/download/curl-$CURL_VERSION.tar.bz2 && \
22+
tar xjvf curl-$CURL_VERSION.tar.bz2 && \
23+
rm curl-$CURL_VERSION.tar.bz2 && \
24+
cd curl-$CURL_VERSION && \
25+
./configure \
26+
--with-nghttp2=/usr \
27+
--prefix=/usr \
28+
--with-ssl \
29+
--enable-ipv6 \
30+
--enable-unix-sockets \
31+
--without-libidn \
32+
--disable-static \
33+
--disable-ldap \
34+
--with-pic && \
35+
make && \
36+
make install && \
37+
cd / && \
38+
rm -r curl-$CURL_VERSION && \
39+
rm -r /var/cache/apk && \
40+
rm -r /usr/share/man && \
41+
apk del curldeps
42+
43+
44+
ENV TZ=Asia/Shanghai
45+
RUN apk add --no-cache tzdata && ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
46+
47+
RUN apk add --upgrade sysstat

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# alpine
1+
# alpine
2+
3+
docker build -t rubinus/alpine-curl:v1.0 .

0 commit comments

Comments
 (0)