-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
43 lines (32 loc) · 1 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
# https://pages.github.com/versions/
FROM ruby:3.3.1-alpine
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_TYPE en_US.UTF-8
# Install and set locales ruby-dev
RUN apk -q --no-cache --update add nodejs npm make gcc g++ libc-dev\
&& apk cache clean \
&& gem install bundler \
&& npm install -g npm@latest
# Entrypoint
COPY docker-entrypoint.sh /
# Add additional files to install required Ruby gems and Node packages
# to make docker container startup faster
COPY Gemfile package.json package-lock.json _config_dev.yml /app/
WORKDIR /app
RUN cd /app
# Installing/updating required Ruby gems.
#RUN gem update --system
RUN bundle install
RUN bundle update
# Installing/updating required node packages
RUN npm install
RUN npm update --save
RUN npm audit fix | true
# To buil image and run node browser-sync
#ENTRYPOINT ["bundle", "exec"]
#CMD ["jekyll", "serve", "--config", "_config_dev.yml", "--host=0.0.0.0"]
# CMD
ENTRYPOINT ["/docker-entrypoint.sh"]