File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ MAINTAINER FIWARE IoTAgent Team. Telefónica I+D
57
57
#
58
58
# COPY . /opt/iotasigfox/
59
59
#
60
- RUN if [ "${DOWNLOAD}" = "latest" ] ; \
60
+ RUN apt-get update && \
61
+ # Ensure that unzip, wget and curl are installed
62
+ apt-get install -y --no-install-recommends unzip ca-certificates curl wget && \
63
+ # Now download the sources from GitHub
64
+ if [ "${DOWNLOAD}" = "latest" ] ; \
61
65
then \
62
66
RELEASE="${SOURCE_BRANCH}" ; \
63
67
echo "INFO: Building Latest Development from ${SOURCE_BRANCH} branch." ; \
@@ -70,17 +74,15 @@ RUN if [ "${DOWNLOAD}" = "latest" ] ; \
70
74
echo "INFO: Building Release: ${RELEASE}" ; \
71
75
fi && \
72
76
RELEASE_CONCAT=$(echo "${RELEASE}" | tr / -); \
73
- # Ensure that unzip is installed, and download the sources
74
- apt-get update && \
75
- apt-get install -y --no-install-recommends unzip && \
76
77
wget --no-check-certificate -O source.zip https://github.com/"${GITHUB_ACCOUNT}" /"${GITHUB_REPOSITORY}" /archive/"${RELEASE}" .zip && \
77
78
unzip source.zip && \
78
79
rm source.zip && \
79
80
mv "${GITHUB_REPOSITORY}-${RELEASE_CONCAT}" /opt/iotasigfox && \
80
81
# Remove unzip and clean apt cache
81
82
apt-get clean && \
82
83
apt-get remove -y unzip && \
83
- apt-get -y autoremove
84
+ apt-get -y autoremove && \
85
+ rm -rf /var/lib/apt/lists/*
84
86
85
87
WORKDIR /opt/iotasigfox
86
88
You can’t perform that action at this time.
0 commit comments