2023-11-17 04:07:32 +01:00
|
|
|
ARG BASE_TAG="develop"
|
|
|
|
ARG BASE_IMAGE="core-ubuntu-focal"
|
|
|
|
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
ENV HOME /home/kasm-default-profile
|
|
|
|
ENV STARTUPDIR /dockerstartup
|
|
|
|
ENV LAUNCH_URL http://127.0.0.1:5002
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
|
|
|
### Envrionment config
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
|
|
SKIP_CLEAN=true \
|
|
|
|
KASM_RX_HOME=$STARTUPDIR/kasmrx \
|
|
|
|
DONT_PROMPT_WSL_INSTALL="No_Prompt_please" \
|
|
|
|
INST_DIR=$STARTUPDIR/install \
|
2024-01-11 12:39:34 +01:00
|
|
|
INST_SCRIPTS="/ubuntu/install/tools/install_tools_deluxe.sh \
|
2023-11-17 04:07:32 +01:00
|
|
|
/ubuntu/install/firefox/install_firefox.sh \
|
|
|
|
/ubuntu/install/spiderfoot/install_spiderfoot.sh \
|
|
|
|
/ubuntu/install/cleanup/cleanup.sh"
|
|
|
|
|
|
|
|
# Copy install scripts
|
|
|
|
COPY ./src/ $INST_DIR
|
|
|
|
|
2024-01-05 21:05:46 +01:00
|
|
|
RUN cp /usr/share/backgrounds/bg_kasm.png /usr/share/backgrounds/bg_default.png
|
2023-11-17 04:07:32 +01:00
|
|
|
COPY ./src/ubuntu/install/spiderfoot/custom_startup.sh $STARTUPDIR/custom_startup.sh
|
|
|
|
RUN chmod +x $STARTUPDIR/custom_startup.sh
|
|
|
|
RUN chmod 755 $STARTUPDIR/custom_startup.sh
|
|
|
|
|
|
|
|
# Run installations
|
|
|
|
RUN \
|
|
|
|
for SCRIPT in $INST_SCRIPTS; do \
|
2024-01-11 12:39:34 +01:00
|
|
|
bash ${INST_DIR}${SCRIPT} || exit 1; \
|
2023-11-17 04:07:32 +01: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
|
|
|
|
ENV HOME /home/kasm-user
|
|
|
|
WORKDIR $HOME
|
|
|
|
USER 1000
|
|
|
|
|
|
|
|
CMD ["--tail-log"]
|