new deploy fixes 6/?
This commit is contained in:
parent
acd829bcb0
commit
32e61410f8
1 changed files with 13 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
FROM ruby:3.1.1 AS builder
|
||||||
|
RUN apt-get update -qq && apt-get install -y build-essential nodejs
|
||||||
|
WORKDIR /srv/jekyll
|
||||||
|
COPY Gemfile Gemfile.lock ./
|
||||||
|
RUN bundle install
|
||||||
|
COPY . .
|
||||||
|
RUN chown 1000:1000 -R /srv/jekyll
|
||||||
|
RUN bundle exec jekyll build -d /srv/jekyll/_site
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
COPY --from=builder /srv/jekyll/_site /usr/share/nginx/html
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue