Skip to content

Commit 70e0bcb

Browse files
committed
updated ntp service call
1 parent ecc138c commit 70e0bcb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
77
CMD ["/sbin/my_init"]
88

99
# Nginx-PHP Installation
10-
RUN apt-get update -y && apt-get install -y vim curl wget build-essential python-software-properties git-core ntp
10+
RUN apt-get update -y && apt-get install -y vim curl wget build-essential python-software-properties git-core
1111
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4F4EA0AAE5267A6C
1212
RUN add-apt-repository -y ppa:ondrej/php5-5.6 && add-apt-repository -y ppa:nginx/stable && add-apt-repository ppa:chris-lea/node.js
1313
RUN apt-get update -y && sudo apt-get upgrade -y && apt-get install -y php5 php5-cli php5-fpm php5-mysql php5-curl \
@@ -17,6 +17,9 @@ RUN apt-get update -y && sudo apt-get upgrade -y && apt-get install -y php5 php5
1717
# Install nginx (full)
1818
RUN apt-get install -y nginx-full
1919

20+
# Install ntpd
21+
RUN apt-get install -y nginx-full
22+
2023
# Add build script
2124
RUN mkdir -p /root/setup
2225
ADD build/setup.sh /root/setup/setup.sh

build/ntp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22

3-
ntp
3+
/usr/sbin/ntpd -u ntp:ntp -p /var/run/ntpd.pid -g -n

0 commit comments

Comments
 (0)