refactor(docker): Reduce docker image final size
This commit is contained in:
parent
cc5277f853
commit
614178c124
3 changed files with 11 additions and 3 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
*
|
||||
*./*
|
||||
*/*
|
||||
*.*
|
||||
!*.sh
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
.history
|
||||
.vscode
|
||||
*.log
|
|
@ -1,7 +1,9 @@
|
|||
FROM alpine:3.10
|
||||
|
||||
COPY LICENSE README.md /
|
||||
RUN apk upgrade --update \
|
||||
apk add --no-cache openssh \
|
||||
&& rm -rf /tmp/* /usr/share/man /var/cache/apk/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
COPY . /
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue