Skip to content

Commit 003f596

Browse files
authored
Merge pull request #77 from jason-fox/patch-5
Ensure wget and node are present
2 parents b326368 + 8f0be3b commit 003f596

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docker/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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

8587
WORKDIR /opt/iotasigfox
8688

0 commit comments

Comments
 (0)