-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 1.17 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
FROM ruby:2.5.3-slim
LABEL com.acrosszuniverse.maintainer-name="Paul-Emmanuel Raoul"
LABEL com.acrosszuniverse.maintainer-email="skyper@skyplabs.net"
ARG DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=C.UTF-8
RUN apt-get update &&\
apt-get install -y --no-install-recommends \
gcc g++ make patch git curl apt-transport-https gnupg2 &&\
curl -sL https://deb.nodesource.com/setup_10.x | bash - &&\
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&\
echo "deb https://dl.yarnpkg.com/debian/ stable main" \
| tee /etc/apt/sources.list.d/yarn.list &&\
apt-get update &&\
apt-get install -y --no-install-recommends nodejs yarn
WORKDIR /usr/src/app
COPY Gemfile /usr/src/app
COPY Gemfile.lock /usr/src/app
RUN yes | gem update --system --force &&\
gem install bundler &&\
bundle install &&\
rm -f Gemfile Gemfile.lock
EXPOSE 4000
CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0", "--watch", "--drafts", "--future"]