Sign inSign up

cdue/webconsole

By cdue

Updated almost 9 years ago

Run a terminal inside your browser thanks to http://web-console.org/

Image
3

100K+

Dockerfile
FROM php:7.0-apache

RUN apt-get update && apt-get install -y wget unzip

RUN wget https://github.com/nickola/web-console/releases/download/v0.9.7/webconsole-0.9.7.zip && \
  unzip webconsole-0.9.7.zip -d / && \
  mv /webconsole/* /var/www/html/ && \
  rmdir /webconsole

WORKDIR /var/www/html/

RUN sed -i "s/\$USER \= '';/\$USER \= 'user';/g" webconsole.php && \
  sed -i "s/\$PASSWORD \= '';/\$PASSWORD \= 'password';/g" webconsole.php && \
  mv webconsole.php index.php

# CMD [ "php", "./webconsole.php" ]