This repository was archived by the owner on Dec 1, 2023. It is now read-only.
forked from evolvingweb/docker-redmine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (38 loc) · 1.69 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM ubuntu:14.04
MAINTAINER [email protected]
ENV DEBIAN_FRONTEND noninteractive
COPY assets/detect_squid_deb_proxy /tmp/detect_squid_deb_proxy
RUN bash /tmp/detect_squid_deb_proxy && apt-get update && apt-get -y dist-upgrade
RUN echo "APT::Install-Recommends 0;" >> /etc/apt/apt.conf.d/01norecommends \
&& echo "APT::Install-Suggests 0;" >> /etc/apt/apt.conf.d/01norecommends \
&& apt-get update \
&& apt-get install -y vim.tiny wget sudo net-tools ca-certificates \
&& rm -rf /var/lib/apt/lists/* # 20140818
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv C3173AA6 \
&& echo "deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu trusty main" >> /etc/apt/sources.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv C300EE8C \
&& echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu trusty main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
supervisor logrotate nginx mysql-client postgresql-client \
imagemagick subversion git cvs bzr mercurial rsync ruby2.1 locales openssh-client \
gcc g++ make patch pkg-config ruby2.1-dev libc6-dev \
libmysqlclient18 libpq5 libyaml-0-2 libcurl3 libssl1.0.0 \
libxslt1.1 libffi6 zlib1g \
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
&& gem install --no-document bundler \
&& rm -rf /var/lib/apt/lists/* # 20140918
COPY assets/setup/ /app/setup/
RUN chmod 755 /app/setup/install
RUN /app/setup/install
COPY assets/config/ /app/setup/config/
COPY assets/init /app/init
RUN chmod 755 /app/init
#set default workdir
WORKDIR /home/redmine
EXPOSE 80
EXPOSE 443
VOLUME ["/home/redmine/data"]
VOLUME ["/var/log/redmine"]
ENTRYPOINT ["/app/init"]
CMD ["app:start"]