refactor(docker): Reduce docker image final size

This commit is contained in:
Fabricio Nogueira 2020-06-05 18:29:58 -03:00
parent cc5277f853
commit 614178c124
3 changed files with 11 additions and 3 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
*
*./*
*/*
*.*
!*.sh

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
.history
.vscode
*.log

View file

@ -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"]