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
|
|
|
|
|
|
|
|
######### Customize Container Here ###########
|
|
|
|
|
|
|
|
|
|
|
|
# Install Utilities
|
|
|
|
COPY ./src/ubuntu/install/misc $INST_SCRIPTS/misc/
|
|
|
|
RUN bash $INST_SCRIPTS/misc/install_tools.sh && rm -rf $INST_SCRIPTS/misc/
|
|
|
|
|
|
|
|
# Install Google Chrome
|
|
|
|
COPY ./src/ubuntu/install/chrome $INST_SCRIPTS/chrome/
|
|
|
|
RUN bash $INST_SCRIPTS/chrome/install_chrome.sh && rm -rf $INST_SCRIPTS/chrome/
|
|
|
|
|
|
|
|
# Install Firefox
|
|
|
|
COPY ./src/ubuntu/install/firefox/ $INST_SCRIPTS/firefox/
|
|
|
|
COPY ./src/ubuntu/install/firefox/firefox.desktop $HOME/Desktop/
|
|
|
|
RUN bash $INST_SCRIPTS/firefox/install_firefox.sh && rm -rf $INST_SCRIPTS/firefox/
|
|
|
|
|
2022-05-04 06:57:58 +02:00
|
|
|
# Install Thunderbird
|
|
|
|
COPY ./src/ubuntu/install/thunderbird $INST_SCRIPTS/thunderbird/
|
|
|
|
RUN bash $INST_SCRIPTS/thunderbird/install_thunderbird.sh && rm -rf $INST_SCRIPTS/thunderbird/
|
2021-06-16 15:41:01 +02:00
|
|
|
|
|
|
|
######### End Customizations ###########
|
|
|
|
|
|
|
|
RUN chown 1000:0 $HOME
|
|
|
|
RUN "$STARTUPDIR/set_user_permission.sh" $HOME
|
|
|
|
|
|
|
|
ENV HOME /home/kasm-user
|
|
|
|
WORKDIR $HOME
|
|
|
|
RUN mkdir -p $HOME && chown -R 1000:0 $HOME
|
|
|
|
|
|
|
|
USER 1000
|