瀏覽代碼

Update drone.yml and Dockerfile

tags/v0.0.28
Peter Vivell 7 年之前
父節點
當前提交
6c3ce54de5
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      Dockerfile

+ 5
- 0
Dockerfile 查看文件

1
 FROM debian:stable-slim
1
 FROM debian:stable-slim
2
 MAINTAINER Drone CI/CD
2
 MAINTAINER Drone CI/CD
3
 
3
 
4
+ARG HTTP_PROXY
4
 RUN echo $'\n\
5
 RUN echo $'\n\
5
       Acquire::http  { Proxy "'$HTTP_PROXY$'"; } \n\
6
       Acquire::http  { Proxy "'$HTTP_PROXY$'"; } \n\
6
       Acquire::https { Proxy "https://"; }; \n\
7
       Acquire::https { Proxy "https://"; }; \n\
7
 '   >> /etc/apt/apt.conf.d/01-proxy
8
 '   >> /etc/apt/apt.conf.d/01-proxy
8
 
9
 
10
+RUN ls -l /etc/apt/apt.conf.d/01-proxy
11
+RUN cat /etc/apt/apt.conf.d/01-proxy
12
+
13
+ARG BUILDDEPS
9
 RUN apt-get update && \
14
 RUN apt-get update && \
10
     apt-get --yes upgrade && \
15
     apt-get --yes upgrade && \
11
     apt-get --yes install $BUILDDEPS
16
     apt-get --yes install $BUILDDEPS

Loading…
取消
儲存