2022-09-08 21:56:33 +02:00
|
|
|
ARG BASE_TAG="develop"
|
|
|
|
ARG BASE_IMAGE="core-ubuntu-jammy"
|
|
|
|
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
|
|
|
USER root
|
|
|
|
|
|
|
|
ENV HOME /home/kasm-default-profile
|
|
|
|
ENV STARTUPDIR /dockerstartup
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
2023-05-02 06:05:59 +02:00
|
|
|
### Envrionment config
|
|
|
|
ENV DEBUG=false \
|
|
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
|
|
SKIP_CLEAN=true \
|
|
|
|
KASM_RX_HOME=$STARTUPDIR/kasmrx \
|
|
|
|
DONT_PROMPT_WSL_INSTALL="No_Prompt_please" \
|
|
|
|
INST_DIR=$STARTUPDIR/install \
|
|
|
|
INST_SCRIPTS="/ubuntu/install/dind/install_dind.sh \
|
|
|
|
/ubuntu/install/tools/install_tools_deluxe.sh \
|
|
|
|
/ubuntu/install/misc/install_tools.sh \
|
|
|
|
/ubuntu/install/chrome/install_chrome.sh \
|
|
|
|
/ubuntu/install/chromium/install_chromium.sh \
|
|
|
|
/ubuntu/install/sublime_text/install_sublime_text.sh \
|
|
|
|
/ubuntu/install/vs_code/install_vs_code.sh \
|
|
|
|
/ubuntu/install/cleanup/cleanup.sh"
|
|
|
|
|
|
|
|
# Startup Scripts
|
2022-09-08 21:56:33 +02:00
|
|
|
COPY ./src/ubuntu/install/dind/custom_startup.sh $STARTUPDIR/custom_startup.sh
|
|
|
|
RUN chmod 755 $STARTUPDIR/custom_startup.sh
|
|
|
|
COPY ./src/ubuntu/install/dind/dockerd.conf /etc/supervisor/conf.d/
|
|
|
|
|
2023-05-02 06:05:59 +02:00
|
|
|
# Copy install scripts
|
|
|
|
COPY ./src/ $INST_DIR
|
|
|
|
|
|
|
|
# Run installations
|
|
|
|
RUN \
|
|
|
|
for SCRIPT in $INST_SCRIPTS; do \
|
2024-01-11 12:39:34 +01:00
|
|
|
bash ${INST_DIR}${SCRIPT} || exit 1; \
|
2023-05-02 06:05:59 +02:00
|
|
|
done && \
|
|
|
|
$STARTUPDIR/set_user_permission.sh $HOME && \
|
|
|
|
rm -f /etc/X11/xinit/Xclients && \
|
|
|
|
chown 1000:0 $HOME && \
|
|
|
|
mkdir -p /home/kasm-user && \
|
|
|
|
chown -R 1000:0 /home/kasm-user && \
|
|
|
|
rm -Rf ${INST_DIR}
|
|
|
|
|
|
|
|
# Userspace Runtime
|
2022-09-08 21:56:33 +02:00
|
|
|
ENV HOME /home/kasm-user
|
|
|
|
WORKDIR $HOME
|
|
|
|
USER 1000
|
2023-05-02 06:05:59 +02:00
|
|
|
|
|
|
|
CMD ["--tail-log"]
|