-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
25 lines (22 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ubuntu:14.04
MAINTAINER yamamuteki <yama@muteki.com>
ENV ORMASTER_PASSWORD=ormaster
# Reference to http://www.orca.med.or.jp/receipt/download/trusty/trusty_install_48.html.
RUN set -xe \
&& cd /tmp \
&& apt-get install -y wget syslinux-common \
&& wget -q https://ftp.orca.med.or.jp/pub/ubuntu/archive.key \
&& apt-key add archive.key \
&& wget -q -O /etc/apt/sources.list.d/jma-receipt-trusty48.list https://ftp.orca.med.or.jp/pub/ubuntu/jma-receipt-trusty48.list \
&& apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y jma-receipt \
&& wget https://ftp.orca.med.or.jp/pub/data/receipt/outline/update/claim_update.tar.gz \
&& tar xvzf claim_update.tar.gz \
&& bash claim_update.sh \
&& service postgresql restart \
&& jma-setup \
&& /bin/echo -e "$ORMASTER_PASSWORD\n$ORMASTER_PASSWORD" | sudo -u orca /usr/lib/jma-receipt/bin/passwd_store.sh \
&& rm -rf /tmp/* /var/lib/apt/lists/*
EXPOSE 8000
CMD service postgresql restart && service jma-receipt start && tail -f /dev/null