pearl harbor
This commit is contained in:
@@ -4,7 +4,8 @@ FROM ubuntu:22.04
|
||||
# Install dependencies
|
||||
RUN apt-get update && \
|
||||
apt-get install -y curl tar wget docker.io docker-compose sudo && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
export TERM=xterm
|
||||
|
||||
# Set environment variables
|
||||
ENV HARBOR_VERSION=2.9.0
|
||||
@@ -23,11 +24,11 @@ RUN curl -LO https://github.com/goharbor/harbor/releases/download/v$HARBOR_VERSI
|
||||
# Set workdir to the Harbor folder
|
||||
WORKDIR $HARBOR_DIR/harbor
|
||||
|
||||
# Copy a default harbor.yml config (optional)
|
||||
# COPY harbor.yml ./harbor.yml
|
||||
# Copy a default harbor.yml config
|
||||
COPY harbor.yml ./harbor.yml
|
||||
|
||||
# Expose default Harbor ports
|
||||
EXPOSE 80 443 4443
|
||||
|
||||
# Run the installer
|
||||
CMD ["./install.sh", "--with-notary", "--with-clair"]
|
||||
CMD ["./install.sh", "--with-trivy"]
|
||||
|
||||
Reference in New Issue
Block a user