2021-06-16 15:41:01 +02:00
|
|
|
ARG BASE_TAG="develop"
|
2022-03-23 22:11:48 +01:00
|
|
|
ARG BASE_IMAGE="core-centos-7"
|
|
|
|
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
2021-06-16 15:41:01 +02:00
|
|
|
USER root
|
|
|
|
|
|
|
|
ENV DISTRO=centos
|
|
|
|
ENV HOME /home/kasm-default-profile
|
|
|
|
ENV STARTUPDIR /dockerstartup
|
|
|
|
ENV INST_SCRIPTS $STARTUPDIR/install
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
2023-05-02 06:05:59 +02:00
|
|
|
### Envrionment config
|
|
|
|
ENV SKIP_CLEAN=true \
|
|
|
|
KASM_RX_HOME=$STARTUPDIR/kasmrx \
|
|
|
|
INST_DIR=$STARTUPDIR/install \
|
|
|
|
INST_SCRIPTS="/ubuntu/install/misc/install_tools.sh \
|
|
|
|
/ubuntu/install/chrome/install_chrome.sh \
|
|
|
|
/ubuntu/install/firefox/install_firefox.sh \
|
|
|
|
/ubuntu/install/thunderbird/install_thunderbird.sh \
|
|
|
|
/ubuntu/install/cleanup/cleanup.sh"
|
|
|
|
|
|
|
|
# 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
|
2021-06-16 15:41:01 +02:00
|
|
|
ENV HOME /home/kasm-user
|
|
|
|
WORKDIR $HOME
|
|
|
|
USER 1000
|
2023-05-02 06:05:59 +02:00
|
|
|
|
|
|
|
CMD ["--tail-log"]
|