Docker build
This commit is contained in:
parent
a4f9dadd8b
commit
11fc5d1a75
2 changed files with 25 additions and 0 deletions
15
Containerfile
Normal file
15
Containerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM git.farthergate.com/asr/phlexite AS build
|
||||
|
||||
RUN mkdir -p /usr/local/bin
|
||||
RUN wget -O /usr/local/bin/tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
|
||||
RUN chmod +x /usr/local/bin/tailwindcss
|
||||
|
||||
ENV TAILWINDCSS_INSTALL_DIR=/usr/local/bin
|
||||
|
||||
ADD . /site
|
||||
|
||||
RUN bundle && bundle exec ruby build.rb
|
||||
|
||||
FROM git.farthergate.com/asr/phlexite-runtime
|
||||
|
||||
COPY --from=build /site/_build /var/www/html
|
Loading…
Add table
Add a link
Reference in a new issue