Merge pull request #2984 from RolandMa1986/fix-build
optimize docker build
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
tmp/
|
||||
.github
|
||||
# exclude all files and folders except bin folder
|
||||
**
|
||||
!bin
|
||||
|
||||
@@ -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"]
|
||||
Reference in New Issue
Block a user