Merge pull request #2984 from RolandMa1986/fix-build

optimize docker build
This commit is contained in:
KubeSphere CI Bot
2020-09-22 19:05:02 +08:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -1,2 +1,3 @@
tmp/
.github
# exclude all files and folders except bin folder
**
!bin

View File

@@ -3,10 +3,10 @@
# that can be found in the LICENSE file.
FROM alpine:3.11
COPY /bin/cmd/controller-manager /usr/local/bin/
RUN apk add --no-cache ca-certificates
COPY /bin/cmd/controller-manager /usr/local/bin/
EXPOSE 8443 8080
CMD ["sh"]