File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ MAINTAINER FIWARE IoTAgent Team. Telefónica I+D
5757#
5858# COPY . /opt/iotasigfox/
5959#
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" ] ; \
6165 then \
6266 RELEASE="${SOURCE_BRANCH}" ; \
6367 echo "INFO: Building Latest Development from ${SOURCE_BRANCH} branch." ; \
@@ -70,17 +74,15 @@ RUN if [ "${DOWNLOAD}" = "latest" ] ; \
7074 echo "INFO: Building Release: ${RELEASE}" ; \
7175 fi && \
7276 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 && \
7677 wget --no-check-certificate -O source.zip https://github.com/"${GITHUB_ACCOUNT}" /"${GITHUB_REPOSITORY}" /archive/"${RELEASE}" .zip && \
7778 unzip source.zip && \
7879 rm source.zip && \
7980 mv "${GITHUB_REPOSITORY}-${RELEASE_CONCAT}" /opt/iotasigfox && \
8081 # Remove unzip and clean apt cache
8182 apt-get clean && \
8283 apt-get remove -y unzip && \
83- apt-get -y autoremove
84+ apt-get -y autoremove && \
85+ rm -rf /var/lib/apt/lists/*
8486
8587WORKDIR /opt/iotasigfox
8688
You can’t perform that action at this time.
0 commit comments