mirror of
https://github.com/TeamNewPipe/website
synced 2025-10-05 16:13:13 +02:00
Make Dockerfile more efficient
This commit is contained in:
@@ -2,3 +2,11 @@
|
||||
LICENSE.md
|
||||
licenses/
|
||||
README.md
|
||||
.bundle/
|
||||
Dockerfile*
|
||||
docker-compose.yml*
|
||||
*.log
|
||||
*cache/
|
||||
.vagrant/
|
||||
vendor/
|
||||
*.swp
|
||||
|
31
Dockerfile
31
Dockerfile
@@ -15,32 +15,8 @@ WORKDIR /srv/jekyll
|
||||
ARG ISSO_ADDRESS
|
||||
ENV JEKYLL_ENV=production
|
||||
|
||||
# copy static resources
|
||||
COPY bootstrap bootstrap
|
||||
COPY css css
|
||||
COPY js js
|
||||
COPY font-awesome font-awesome
|
||||
COPY legal legal
|
||||
COPY lunrjs lunrjs
|
||||
COPY press press
|
||||
COPY _plugins _plugins
|
||||
COPY _layouts _layouts
|
||||
COPY _includes _includes
|
||||
COPY pdf pdf
|
||||
COPY _config.yml .
|
||||
COPY index.html .
|
||||
COPY favicon.ico .
|
||||
COPY blog blog
|
||||
COPY donate donate
|
||||
|
||||
# copy files which are changed more regularly (aka content)
|
||||
COPY .git .git
|
||||
COPY _tutorials _tutorials
|
||||
COPY _faq _faq
|
||||
COPY FAQ FAQ
|
||||
COPY img img
|
||||
COPY _data _data
|
||||
COPY _posts _posts
|
||||
# copy data
|
||||
COPY . /srv/jekyll/
|
||||
|
||||
RUN bash -xc "chown -R jekyll: /srv/jekyll && \
|
||||
bundle update jekyll && \
|
||||
@@ -49,9 +25,6 @@ RUN bash -xc "chown -R jekyll: /srv/jekyll && \
|
||||
jekyll build && \
|
||||
mv _site/ /data"
|
||||
|
||||
RUN ls -al /data /data/img
|
||||
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
# Disable access logs (if needed, can be fetched from the reverse proxy)
|
||||
|
Reference in New Issue
Block a user