mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
26 lines
527 B
Docker
26 lines
527 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 conf /go/bin/conf
|
|
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
|
|
|