forked from chaifeng/ufw-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 945 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM debian:buster-slim
# "docker-ce=5:19.03*" "docker-ce-cli=5:19.03*"
RUN apt-get update \
&& apt-get install -y --no-install-recommends apt-transport-https \
ca-certificates curl software-properties-common gnupg2 \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" \
&& apt-get update \
&& apt-get install -y --no-install-recommends ufw docker-ce docker-ce-cli containerd.io \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
ADD ufw-docker docker-entrypoint.sh /usr/bin/
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
CMD ["start"]
# docker build -t harbor.infra.s2app.ru/library/ufw-docker:buster -f Dockerfile .
# docker push harbor.infra.s2app.ru/library/ufw-docker:buster