mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-03 01:00:08 +01:00
30 lines
769 B
Docker
30 lines
769 B
Docker
FROM golang:1.6.2
|
|
|
|
MAINTAINER jiangd@vmware.com
|
|
|
|
RUN apt-get update && apt-get install -y libldap2-dev \
|
|
&& rm -r /var/lib/apt/lists/*
|
|
|
|
ENV MYSQL_USR root \
|
|
MYSQL_PWD root \
|
|
REGISTRY_URL localhost:5000
|
|
|
|
RUN mkdir /harbor/
|
|
COPY ./make/dev/ui/harbor_ui /harbor/
|
|
|
|
COPY ./src/ui/views /harbor/views
|
|
COPY ./src/ui/static /harbor/static
|
|
COPY ./src/favicon.ico /harbor/favicon.ico
|
|
COPY ./make/jsminify.sh /tmp/jsminify.sh
|
|
|
|
RUN chmod u+x /harbor/harbor_ui \
|
|
&& sed -i 's/TLS_CACERT/#TLS_CAERT/g' /etc/ldap/ldap.conf \
|
|
&& sed -i '$a\TLS_REQCERT allow' /etc/ldap/ldap.conf \
|
|
&& /tmp/jsminify.sh /harbor/views/sections/script-include.htm /harbor/static/resources/js/harbor.app.min.js /harbor/
|
|
|
|
WORKDIR /harbor/
|
|
ENTRYPOINT ["/harbor/harbor_ui"]
|
|
|
|
EXPOSE 80
|
|
|