feat: move all build steps to multi-stage docker image build
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
abf6e0f447
commit
7c502d6136
@ -1,3 +1,20 @@
|
||||
FROM kolaente/toolbox AS build-theme
|
||||
|
||||
COPY . /web
|
||||
WORKDIR /web
|
||||
RUN mkdir /web/themes/vikunja -p && \
|
||||
cd /web/themes/vikunja && \
|
||||
wget https://dl.vikunja.io/theme/vikunja-theme.tar.gz && \
|
||||
tar -xzf vikunja-theme.tar.gz
|
||||
|
||||
FROM klakegg/hugo:0.99.1 as builder
|
||||
|
||||
COPY . /web
|
||||
WORKDIR /web
|
||||
COPY --from=build-theme /web/themes /web/themes
|
||||
|
||||
RUN rm -rf public && hugo
|
||||
|
||||
FROM nginx
|
||||
ADD public /usr/share/nginx/html
|
||||
COPY --from=builder /web/public /usr/share/nginx/html
|
||||
ADD nginx.conf /etc/nginx/nginx.conf
|
||||
|
Loading…
Reference in New Issue