-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
9 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,24 +1,22 @@ | ||
#FROM debian:jessie | ||
#FROM jgoerzen/debian-base-standard | ||
#FROM jgoerzen/debian-base-security:buster | ||
FROM phusion/baseimage:0.11 | ||
|
||
MAINTAINER Tom Mitchell <[email protected]> | ||
|
||
ENV VERSION=3.9.2 | ||
ENV HOME=/home/weewx | ||
|
||
RUN apt-get -y update | ||
|
||
RUN apt-get install -y apt-utils | ||
|
||
ENV TZ=America/New_York | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
# debian, ubuntu, mint, raspbian | ||
|
||
# for systems that do not have python 2 installed (for example, ubuntu 18.04 and later): | ||
RUN apt-get install -y python python-pil python-configobj python-cheetah python-serial python-usb | ||
RUN apt-get install -y default-mysql-client python-mysqldb | ||
RUN apt-get install -y ftp python-dev python-pip python-setuptools | ||
RUN apt-get install -y sqlite3 curl python-pip rsync ssh git | ||
RUN apt-get install -y sqlite3 curl python-pip rsync ssh tzdata | ||
|
||
RUN pip install pyephem | ||
|
||
|
@@ -27,9 +25,6 @@ RUN pip install pyephem | |
ADD dist/weewx-$VERSION /tmp/ | ||
RUN cd /tmp && ./setup.py build && ./setup.py install --no-prompt | ||
|
||
ENV TZ=America/New_York | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
# add all confs and extras to the install | ||
# based on CONF env, copy the dirs to the install using CMD cp | ||
|
||
|