mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
add a Dockerfile to build environment for mirror-web
This commit is contained in:
parent
dbf1abd0a5
commit
b53a03515d
|
|
@ -0,0 +1,18 @@
|
|||
FROM ruby:2.3
|
||||
|
||||
RUN mkdir /data
|
||||
WORKDIR /data
|
||||
|
||||
RUN apt-get update && apt-get -y install nodejs
|
||||
|
||||
COPY Gemfile /data/
|
||||
|
||||
RUN gem install bundler
|
||||
RUN bundle install
|
||||
|
||||
# Fix https://github.com/babel/ruby-babel-transpiler/issues/294
|
||||
RUN sed -i 's/@context ||= ExecJS.compile("var self = this; " + File.read(script_path))/@context ||= ExecJS.compile("var self = this; " + File.read(script_path, :encoding => "UTF-8"))/' /usr/local/bundle/gems/babel-transpiler-0.7.0/lib/babel/transpiler.rb
|
||||
|
||||
ENV LANG en_US.UTF-8
|
||||
|
||||
CMD ["jekyll", "build"]
|
||||
Loading…
Reference in New Issue