docker-geneweb/Dockerfile

39 lines
781 B
Docker
Raw Normal View History

2018-12-12 17:23:49 +01:00
FROM i386/debian:wheezy
2016-11-06 12:02:36 +01:00
2018-12-12 17:23:49 +01:00
MAINTAINER Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>
2016-11-06 12:02:36 +01:00
# This is where your data is
ENV GENEWEBDB /genewebData
2018-12-12 17:23:49 +01:00
ENV GENEWEBSHARE /opt/geneweb/gw
2016-11-06 12:02:36 +01:00
# HTTP Port where geneweb is running
ENV PORT 2317
# Language of interface and setup
2016-11-06 12:13:28 +01:00
ENV LANGUAGE de
2016-11-06 12:02:36 +01:00
EXPOSE ${PORT}
RUN \
apt-get update && \
2018-12-12 17:23:49 +01:00
apt-get -y install wget && \
rm -rf /var/lib/apt/lists/*
2016-11-06 12:02:36 +01:00
2018-12-12 17:23:49 +01:00
RUN \
cd /tmp && wget --no-check-certificate https://github.com/geneweb/geneweb/releases/download/v5.02/gw-5.02-linux.tar && \
tar -xf gw-5.02-linux.tar && \
cd /opt && mkdir geneweb && \
mv /tmp/distribution/* /opt/geneweb
2016-11-06 12:02:36 +01:00
2018-12-12 17:23:49 +01:00
COPY scripts/bootstrap.sh /
RUN chmod a+x /bootstrap.sh
2016-11-06 12:02:36 +01:00
2018-12-12 17:23:49 +01:00
COPY scripts/README-SETUP.txt /
2016-11-06 12:02:36 +01:00
2018-12-12 17:23:49 +01:00
VOLUME ${GENEWEBDB}
2016-11-06 12:02:36 +01:00
CMD ["/bootstrap.sh"]
2018-12-12 17:23:49 +01:00