apk upgrade on build and use --no-cache
This commit is contained in:
parent
e65a6cf91a
commit
b3b70e43d6
@ -1,10 +1,10 @@
|
||||
FROM alpine:latest
|
||||
|
||||
LABEL maintainer "https://github.com/hermsi1337"
|
||||
LABEL maintainer="https://github.com/hermsi1337"
|
||||
|
||||
ENV ROOT_PASSWORD root
|
||||
|
||||
RUN apk --update add openssh \
|
||||
RUN apk upgrade && apk add --no-cache openssh \
|
||||
&& sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config \
|
||||
&& echo "root:${ROOT_PASSWORD}" | chpasswd \
|
||||
&& rm -rf /var/cache/apk/* /tmp/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user