Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
fixed: Docker installations fail because the Dockerfile specifies N…
Browse files Browse the repository at this point in the history
…odeJS 6.
  • Loading branch information
jnm committed Jul 31, 2018
1 parent 6643880 commit 280eaf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Updated German and Slovak translations.

##### Fixed
- Docker installations fail because the `Dockerfile` specifies NodeJS 6.
- Download links in file input and draw widgets not working in IE11.
- The required asterisks (*) do not update in real-time if `validateContinously` is set to `false`.

Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ ENV ENKETO_SRC_DIR=/srv/src/enketo_express
# apt installs #
################

# Install Node.
ADD https://deb.nodesource.com/setup_6.x /tmp/
RUN bash /tmp/setup_6.x
# Add NodeJS 8 repository
ADD https://deb.nodesource.com/gpgkey/nodesource.gpg.key /tmp/
RUN echo 'deb https://deb.nodesource.com/node_8.x xenial main' > /etc/apt/sources.list.d/nodesource.list && \
apt-key add /tmp/nodesource.gpg.key

COPY ./setup/docker/apt_requirements.txt ${ENKETO_SRC_DIR}/setup/docker/
WORKDIR ${ENKETO_SRC_DIR}/
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y $(cat setup/docker/apt_requirements.txt) && \
apt-get install -y nodejs $(cat setup/docker/apt_requirements.txt) && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Non-interactive equivalent of `dpkg-reconfigure -plow unattended-upgrades` (see https://blog.sleeplessbeastie.eu/2015/01/02/how-to-perform-unattended-upgrades/).
Expand Down

0 comments on commit 280eaf7

Please sign in to comment.