cloudbeaver / Dockerfile
lancelotly's picture
Update Dockerfile
83c45d7 verified
FROM dbeaver/cloudbeaver
RUN groupadd cloudbeaver
RUN useradd -ms /bin/bash -g cloudbeaver cloudbeaver
RUN chown -R cloudbeaver ./
RUN chmod 777 workspace
RUN chmod 777 /opt/cloudbeaver
# RUN cat /opt/cloudbeaver/conf/cloudbeaver.conf
# RUN sed -i 's/CLOUDBEAVER_APP_ANONYMOUS_ACCESS_ENABLED:true/CLOUDBEAVER_APP_ANONYMOUS_ACCESS_ENABLED:false/g' /opt/cloudbeaver/conf/cloudbeaver.conf
# RUN sed -i 's/core.theming.theme: \'light\',/core.theming.theme: \'dark\',/g' /opt/cloudbeaver/conf/cloudbeaver.conf
RUN sed -i 's/CLOUDBEAVER_APP_ANONYMOUS_ACCESS_ENABLED:true/CLOUDBEAVER_APP_ANONYMOUS_ACCESS_ENABLED:false/g' /opt/cloudbeaver/conf/cloudbeaver.conf
RUN sed -i 's/CLOUDBEAVER_APP_PUBLIC_CREDENTIALS_SAVE_ENABLED:true/CLOUDBEAVER_APP_PUBLIC_CREDENTIALS_SAVE_ENABLED:false/g' /opt/cloudbeaver/conf/cloudbeaver.conf
RUN sed -i 's/CLOUDBEAVER_APP_ADMIN_CREDENTIALS_SAVE_ENABLED:true/CLOUDBEAVER_APP_ADMIN_CREDENTIALS_SAVE_ENABLED:false/g' /opt/cloudbeaver/conf/cloudbeaver.conf
RUN sed -i "s/core.theming.theme: 'light'/core.theming.theme: 'dark'/g" /opt/cloudbeaver/conf/cloudbeaver.conf
RUN cat /opt/cloudbeaver/conf/cloudbeaver.conf
# RUN ls /opt/cloudbeaver/
# RUN ls /opt/cloudbeaver/workspace
EXPOSE 7860 8978
USER cloudbeave