Skip to content

Commit e1a76ce

Browse files
author
Sean P. Kane
committed
Bad proxy fix
1 parent bd581e6 commit e1a76ce

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

99fixbadproxy

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Acquire::http::Pipeline-Depth 0;
2+
Acquire::http::No-Cache true;
3+
Acquire::BrokenProxy true;

Dockerfile

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
FROM node:6.11.3
22

3-
RUN mkdir -p /data/app/bin && mkdir -p /data/app/scripts
3+
RUN mkdir -p /data/app/bin && \
4+
mkdir -p /data/app/scripts && \
5+
mkdir -p /etc/apt/apt.conf.d
46

5-
RUN apt-get -y update
7+
# If apt-get update fails and you are behind a proxy,
8+
# you can try uncommenting the next line to fix it.
9+
#ADD ./99fixbadproxy /etc/apt/apt.conf.d/99fixbadproxy
10+
11+
RUN apt-get -y update && \
12+
apt-get -y upgrade
613

714
ADD ./bin /data/app/bin
815
ADD ./scripts /data/app/scripts

0 commit comments

Comments
 (0)