Skip to content

Commit

Permalink
build website content right into the docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
tiefpunkt committed Oct 2, 2024
1 parent 9efa59c commit 1be2846
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM jekyll/jekyll AS build
COPY --chown=jekyll:jekyll . /srv/jekyll/
RUN jekyll build

FROM php:8.3-apache
COPY docker/mumalab-website.conf /etc/apache2/conf-available/mumalab-website.conf
COPY --from=build /srv/jekyll/_site /var/www/html
RUN a2enconf mumalab-website && \
a2enmod proxy proxy_http ssl && a2enmod rewrite && \
pecl install apcu && docker-php-ext-enable apcu
5 changes: 0 additions & 5 deletions docker/Dockerfile

This file was deleted.

0 comments on commit 1be2846

Please sign in to comment.