21 lines
473 B
Docker
21 lines
473 B
Docker
|
FROM debian:buster
|
||
|
|
||
|
ARG UID 1000
|
||
|
ARG GID 1000
|
||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||
|
|
||
|
RUN apt-get update \
|
||
|
&& apt-get install -y \
|
||
|
openssh-server \
|
||
|
supervisord \
|
||
|
&& apt-get autoremove -y \
|
||
|
&& apt-get clean \
|
||
|
&& rm -fr /var/lib/apt/lists/* \
|
||
|
&& groupadd -g ${GID} chic \
|
||
|
&& useradd -u ${UID} -g ${GID} plinio
|
||
|
|
||
|
COPY docker/supervisord.conf /etc/supervisord.conf
|
||
|
EXPOSE 2222
|
||
|
|
||
|
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|