Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reset port to 3000
Update to node 8
  • Loading branch information
Kai Hendry committed Jul 27, 2018
1 parent 800fa06 commit d45dfd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR /home/meteor
# Install git, curl
RUN apt-get update && \
apt-get install -y git curl build-essential bzip2 gnupg libcap2-bin python && \
(curl https://deb.nodesource.com/setup_4.x | bash) && \
(curl https://deb.nodesource.com/setup_8.x | bash) && \
apt-get install -y nodejs jq && \
apt-get clean && \
rm -Rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand All @@ -23,10 +23,7 @@ COPY known_hosts .ssh/known_hosts

RUN chown -R meteor:meteor .ssh /usr/bin/entrypoint.sh

# Allow node to listen to port 80 even when run by non-root user meteor
RUN setcap 'cap_net_bind_service=+ep' /usr/bin/node

EXPOSE 80
EXPOSE 3000

# Execute entrypoint as user meteor
ENTRYPOINT ["su", "-c", "/usr/bin/entrypoint.sh", "meteor"]
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set -e
: ${SETTINGS_FILE:=""} # Location of settings.json file
: ${SETTINGS_URL:=""} # Remote source for settings.json
: ${MONGO_URL:="mongodb://${MONGO_PORT_27017_TCP_ADDR}:${MONGO_PORT_27017_TCP_PORT}/${DB}"}
: ${PORT:="80"}
: ${PORT:="3000"}
: ${RELEASE:="latest"}

export MONGO_URL
Expand Down

0 comments on commit d45dfd5

Please sign in to comment.