mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-12-15 10:26:44 +00:00
update base image to minimize image size
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
FROM ubuntu
|
||||
RUN apt update \
|
||||
&& apt install -y openssh-server
|
||||
FROM alpine:3.6
|
||||
|
||||
MAINTAINER Newnius <docker@newnius.com>
|
||||
|
||||
RUN apk add --no-cache openssh
|
||||
|
||||
RUN ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
|
||||
|
||||
RUN cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
|
||||
|
||||
ADD bootstrap.sh /etc/bootstrap.sh
|
||||
|
||||
CMD ["bash", "/etc/bootstrap.sh"]
|
||||
|
||||
Reference in New Issue
Block a user