forked from sameersbn/docker-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
28 lines (23 loc) · 832 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
FROM centos:centos7
MAINTAINER [email protected]
RUN yum update -y; yum clean all
RUN yum -y install epel-release; yum clean all
RUN yum install -y supervisor logrotate nginx openssh-server \
git postgresql ruby rubygems python python-docutils \
mariadb-devel libpqxx zlib libyaml gdbm readline redis \
ncurses libffi libxml2 libxslt libcurl libicu rubygem-bundler \
which sudo passwd tar initscripts cronie nodejs; yum clean all
RUN sed -i 's/Defaults requiretty/#Defaults requiretty/g' /etc/sudoers
ADD 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
EXPOSE 22
EXPOSE 80
EXPOSE 443
VOLUME ["/home/git/data"]
VOLUME ["/var/log/gitlab"]
ENTRYPOINT ["/app/init"]
CMD ["app:start"]