mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2024-11-21 07:33:10 +01:00
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
ARG BASE_TAG="develop"
|
|
ARG BASE_IMAGE="core-kasmos"
|
|
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
|
|
|
USER root
|
|
|
|
ENV HOME /home/kasm-default-profile
|
|
ENV STARTUPDIR /dockerstartup
|
|
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 \
|
|
INST_SCRIPTS="/ubuntu/install/misc/install_tools.sh \
|
|
/kasmos/install/browser/install_browser.sh \
|
|
/ubuntu/install/vs_code/install_vs_code.sh \
|
|
/ubuntu/install/remmina/install_remmina.sh \
|
|
/kasmos/install/office/install_office_app.sh \
|
|
/ubuntu/install/zoom/install_zoom.sh \
|
|
/ubuntu/install/thunderbird/install_thunderbird.sh \
|
|
/ubuntu/install/slack/install_slack.sh \
|
|
/ubuntu/install/gamepad_utils/install_gamepad_utils.sh \
|
|
/ubuntu/install/cleanup/cleanup.sh"
|
|
|
|
# Copy install scripts
|
|
COPY ./src/ $INST_DIR
|
|
|
|
# Run installations
|
|
RUN \
|
|
for SCRIPT in $INST_SCRIPTS; do \
|
|
bash ${INST_DIR}${SCRIPT} || exit 1; \
|
|
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}
|
|
|
|
# Remove desktop shortcuts
|
|
RUN rm $HOME/Desktop/*.desktop \
|
|
&& sed -i 's#inode/directory;##g' /usr/share/applications/code.desktop
|
|
|
|
# Userspace Runtime
|
|
ENV HOME /home/kasm-user
|
|
WORKDIR $HOME
|
|
USER 1000
|
|
|
|
CMD ["--tail-log"] |