-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
39 lines (27 loc) · 1019 Bytes
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:19.04
MAINTAINER Jeffery Fernandez <[email protected]>
RUN \
apt-get update && \
apt-get -y install --no-install-recommends geneweb gwsetup tzdata && \
rm -fr /var/lib/apt/lists/*
# Default language to be English
ENV LANGUAGE en
# Default access to gwsetup is from docker host
ENV HOST_IP 172.17.0.1
# Copy script to local bin folder
COPY bin/*.sh /usr/local/bin/
# Make script executable
RUN chmod a+x /usr/local/bin/*.sh
# Change the geneweb home directory to our database path to avoid stomping on debian package path /var/lib/geneweb
RUN usermod -d /usr/local/var/geneweb geneweb
# Ensure that the geneweb database dir exists and is owned by the geneweb user
RUN mkdir -p /usr/local/var/geneweb && chown geneweb /usr/local/var/geneweb
# Create a volume on the container
VOLUME /usr/local/var/geneweb
# Expose the geneweb and gwsetup ports to the docker host
EXPOSE 2317
EXPOSE 2316
# Run the container as the geneweb user
USER geneweb
ENTRYPOINT ["main.sh"]
CMD ["start-all"]