chore: fix Dockerfile.build, remove obsolete Dockerfile.dev

Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
Harry Chen 2024-04-21 00:57:28 +08:00 committed by Miao Wang
parent e802728b44
commit 3905b0b106
2 changed files with 2 additions and 15 deletions

View File

@ -1,4 +1,5 @@
FROM ruby:3.2
LABEL maintainer="Miao Wang <shankerwangmiao@gmail.com>"
RUN mkdir /data
WORKDIR /data
@ -7,7 +8,7 @@ RUN \
apt-get update && \
apt-get install --no-install-recommends -y locales && \
apt-get clean
RUN curl -fsSL "https://cdn.jsdelivr.net/gh/tj/n@7.3.0/bin/n#v14.17.1" | bash -s -- lts
RUN curl -fsSL "https://cdn.jsdelivr.net/gh/tj/n/bin/n" | bash -s -- lts
COPY Gemfile Gemfile.lock package.json package-lock.json /data/
COPY _node_module_patch /data/_node_module_patch

View File

@ -1,14 +0,0 @@
FROM alpine:3.11
MAINTAINER Xuanwo <xuanwo.cn@gmail.com>
RUN apk add --update \
nodejs ruby ruby-dev ruby-rdoc ruby-irb ruby-io-console ruby-nokogiri \
gcc libc-dev libffi-dev zlib-dev libxml2-dev libxslt-dev build-base \
&& rm -rf /var/cache/apk/*
RUN gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
RUN gem install bundler
RUN bundle config build.nokogiri --use-system-libraries
VOLUME /src
WORKDIR /src
EXPOSE 4000
CMD bundle install && jekyll server -H 0.0.0.0