2025-05-19 10:17:58 +02:00

20 lines
472 B
Docker

FROM alpine
ENV USERNAME="shelluser" \
PASSWORD="" \
SUDO_OK="false" \
AUTOLOGIN="true" \
TZ="Etc/UTC"
COPY ./entrypoint.sh /
COPY --chmod=011 ./bin/minishell /bin/minishell
RUN apk update && \
apk add --no-cache tini ttyd tzdata vim nano && \
chmod 700 /entrypoint.sh && \
touch /etc/.firstrun && \
ln -s "/usr/share/zoneinfo/$TZ" /etc/localtime && \
echo $TZ > /etc/timezone
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/entrypoint.sh"]