diff options
Diffstat (limited to 'container/Containerfile')
| -rw-r--r-- | container/Containerfile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/container/Containerfile b/container/Containerfile new file mode 100644 index 0000000..2498b12 --- /dev/null +++ b/container/Containerfile @@ -0,0 +1,28 @@ +FROM docker.io/library/debian:13 + +# Flag that we are a devbox +RUN touch /run/.dbxenv + +# Remove container-specific APT configurations, and install required packages +RUN rm /etc/apt/apt.conf.d/docker-* && \ + apt-get update && \ + apt-get install -y \ + locales \ + openssh-server \ + sudo \ + tini \ + && \ + apt-get clean && \ + rm -dr /var/lib/apt/lists/* + +# Configure locale with UTF-8 support +RUN update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8 + +# Configure SSH server +RUN echo "StreamLocalBindUnlink yes" >> /etc/ssh/sshd_config && \ + echo "AuthorizedKeysFile /etc/ssh/authorized_keys" >> /etc/ssh/sshd_config && \ + touch /etc/ssh/authorized_keys + +# Set up the entrypoint +COPY init /sbin/init +ENTRYPOINT ["/sbin/init"] |
