This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
forked from leachbj/homebridge-docker
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated node version; reduced dependencies
- Loading branch information
1 parent
3e68dbb
commit 30c3f2e
Showing
1 changed file
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
FROM nodesource/jessie:5.8.0 | ||
# https://hub.docker.com/r/nodesource/jessie/tags/ | ||
FROM nodesource/jessie:6.7.0 | ||
|
||
MAINTAINER Marco Raddatz <[email protected]> | ||
|
||
# Debugging helpers | ||
################################################## | ||
# Set environment variables # | ||
################################################## | ||
RUN alias ll='ls -alG' | ||
|
||
# Set environment variables | ||
################################################## | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV TERM xterm | ||
|
||
# Install tools | ||
################################################## | ||
# Install tools # | ||
################################################## | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y apt-utils apt-transport-https locales | ||
RUN apt-get install -y curl wget git python build-essential make g++ libkrb5-dev vim net-tools nano | ||
RUN apt-get install -y avahi-daemon avahi-discover libnss-mdns libavahi-compat-libdnssd-dev | ||
|
||
COPY avahi-daemon.conf /etc/avahi/avahi-daemon.conf | ||
RUN alias ll='ls -alG' | ||
RUN apt-get update; \ | ||
apt-get install -y apt-utils apt-transport-https; \ | ||
apt-get upgrade -y; \ | ||
apt-get install -y locales curl wget; \ | ||
apt-get install -y libnss-mdns avahi-discover libavahi-compat-libdnssd-dev libkrb5-dev; \ | ||
apt-get install -y nano vim | ||
|
||
# Install Homebridge | ||
################################################## | ||
# Install Homebridge # | ||
################################################## | ||
|
||
RUN npm install -g homebridge --unsafe-perm | ||
|
||
# Final settings | ||
################################################## | ||
# Start # | ||
################################################## | ||
COPY avahi-daemon.conf /etc/avahi/avahi-daemon.conf | ||
|
||
USER root | ||
RUN mkdir -p /var/run/dbus | ||
|
||
ADD image/run.sh /root/run.sh | ||
|
||
# Run container | ||
################################################## | ||
EXPOSE 51826 | ||
CMD ["/root/run.sh"] |