You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
924 B
31 lines
924 B
FROM debian:bullseye@sha256:43ef0c6c3585d5b406caa7a0f232ff5a19c1402aeb415f68bcd1cf9d10180af8 |
|
|
|
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 |
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
RUN apt-get update -q && \ |
|
apt-get install -qy \ |
|
git \ |
|
gettext \ |
|
python3 \ |
|
python3-pip \ |
|
python3-setuptools \ |
|
python3-venv \ |
|
faketime \ |
|
&& \ |
|
rm -rf /var/lib/apt/lists/* && \ |
|
apt-get autoremove -y && \ |
|
apt-get clean |
|
|
|
# create new user to avoid using root; but with sudo access and no password for convenience. |
|
ARG UID=1000 |
|
ENV USER="user" |
|
ENV HOME_DIR="/home/${USER}" |
|
ENV WORK_DIR="${HOME_DIR}/wspace" \ |
|
PATH="${HOME_DIR}/.local/bin:${PATH}" |
|
RUN useradd --uid $UID --create-home --shell /bin/bash ${USER} |
|
RUN usermod -append --groups sudo ${USER} |
|
RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers |
|
WORKDIR ${WORK_DIR} |
|
RUN chown --recursive ${USER} ${WORK_DIR} |
|
USER ${USER}
|
|
|