forked from sbomify/sbomify.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (24 loc) · 833 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ruby:3.3-bookworm
ENV LANG C.UTF-8
RUN apt-get update -qq && \
apt-get install -y python3 build-essential curl webp
# Install nvm (Node Version Manager)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash \
&& apt-get update -qq \
&& apt-get install nodejs -y
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES true
# Install Ruby dependencies
ADD Gemfile /usr/src/app
ADD Gemfile.lock /usr/src/app
RUN gem install bundle && \
bundle && \
bundle install
# Install Node.js dependencies including specific npm version and Tailwind CSS
ADD package.json /usr/src/app
ADD package-lock.json /usr/src/app
RUN npm install
#CMD jekyll serve --host 0.0.0.0 --incremental
CMD ["sh", "-c", "npm run watch:css & bundle exec jekyll serve --host 0.0.0.0 --incremental"]
EXPOSE 4000