Skip to content

Instantly share code, notes, and snippets.

@machu
Created January 2, 2018 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save machu/898b78f274a7c4a2c2abee2aa35cb802 to your computer and use it in GitHub Desktop.
Save machu/898b78f274a7c4a2c2abee2aa35cb802 to your computer and use it in GitHub Desktop.
FROM httpd:2.4
ENV TDIARY_VERSION 5.0.7
WORKDIR /usr/local/apache2/htdocs
RUN apt-get update && apt-get install -y \
curl \
ruby \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl -L "https://github.com/tdiary/tdiary-core/releases/download/v${TDIARY_VERSION}/tdiary-v${TDIARY_VERSION}.tar.gz" | tar zx \
&& mv tdiary-v${TDIARY_VERSION} tdiary
COPY httpd.conf /usr/local/apache2/conf/httpd.conf
COPY index.cgi /usr/local/apache2/htdocs/index.cgi
CMD ["httpd-foreground"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment