mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
65e010d56e
delete "ADD conf /go/bin/conf" as conf directory is not exist
25 lines
505 B
Docker
25 lines
505 B
Docker
FROM ubuntu:14.04
|
|
|
|
ENV MYSQL_USR root
|
|
ENV MYSQL_PWD root
|
|
ENV MYSQL_PORT_3306_TCP_ADDR localhost
|
|
ENV MYSQL_PORT_3306_TCP_PORT 3306
|
|
ENV REGISTRY_URL localhost:5000
|
|
|
|
RUN apt-get update -qqy && apt-get install -qqy libldap2-dev
|
|
|
|
ADD harbor /go/bin/harbor
|
|
ADD views /go/bin/views
|
|
ADD static /go/bin/static
|
|
|
|
RUN chmod u+x /go/bin/harbor
|
|
|
|
RUN sed -i 's/TLS_CACERT/#TLS_CAERT/g' /etc/ldap/ldap.conf
|
|
RUN sed -i '$a\TLS_REQCERT allow' /etc/ldap/ldap.conf
|
|
|
|
WORKDIR /go/bin/
|
|
ENTRYPOINT ["/go/bin/harbor"]
|
|
|
|
EXPOSE 80
|
|
|