FEATURE: First Commit

This commit is contained in:
Nikurasu 2021-11-06 23:25:17 +01:00
commit c2856343ed
1 changed files with 20 additions and 0 deletions

20
docker/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM ubuntu:latest
MAINTAINER Nikurasu<publicmail@nikurasu.de
ENV TZ=Europe/Kiev
ENV GEM_HOME=$HOME/gems
ENV PATH=$HOME/gems/bin:$PATH
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y ruby-full build-essential zlib1g-dev git apache2
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN gem install jekyll bundler webrick public_suffix
RUN git clone https://github.com/Nikurasukun/first-jekyll-page.git
WORKDIR first-jekyll-page
RUN /gems/bin/bundle install
RUN /gems/bin/bundle exec /gems/bin/jekyll build
RUN cp -r /first-jekyll-page/_site/* /var/www/html
RUN service apache2 start
EXPOSE 80
CMD ["apachectl", "-D", "FOREGROUND"]