Created
May 6, 2016 11:18
-
-
Save mistymagich/be06651710dd04d63bb64d03d76207dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM httpd:2.4 | |
# prepare | |
RUN apt-get update | |
RUN apt-get -y install ruby wget git | |
# install gyazo | |
RUN install -d -m 755 -g daemon -o daemon /usr/local/apache2/htdocs/data | |
RUN install -d -m 755 -g daemon -o daemon /usr/local/apache2/htdocs/db | |
RUN wget -O /usr/local/apache2/htdocs/upload.cgi https://raw.githubusercontent.com/gyazo/Gyazo/master/Server/upload.cgi | |
RUN sed -i -e "s/gyazo.com/[SERVERDOMAIN]\/data/" /usr/local/apache2/htdocs/upload.cgi | |
RUN chown daemon:daemon /usr/local/apache2/htdocs/upload.cgi | |
RUN chmod +x /usr/local/apache2/htdocs/upload.cgi | |
# httpd settings | |
RUN sed -i -e 's/#LoadModule cgid_module/LoadModule cgid_module/' /usr/local/apache2/conf/httpd.conf | |
RUN sed -i -e 's/#AddHandler cgi-script/AddHandler cgi-script/' /usr/local/apache2/conf/httpd.conf | |
RUN sed -i -e 's/Options Indexes FollowSymLinks/Options FollowSymLinks ExecCGI/' /usr/local/apache2/conf/httpd.conf | |
# clean | |
RUN apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment