-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
42 lines (34 loc) · 869 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
32
33
34
35
36
37
38
39
40
41
42
#
# Build: docker build -t kraiany .
#
# Develop:
# docker run -it --rm -v $(pwd):/app -p 4567:4567 kraiany
# open http://localhost:4567
#
#
# Deploy:
# docker run -it --rm -v $(pwd):/app -v ~/.gitconfig:/root/.gitconfig -p 4567:4567 kraiany deploy
#
FROM ruby:3.1.4
# Expose ports.
EXPOSE 4567
ADD Gemfile* /app/
RUN \
apt-get update && apt-get --yes upgrade \
&& apt-get install -y sudo curl build-essential locales locales-all nodejs
ADD Gemfile* /app/
RUN cd /app \
&& gem install bundler:2.1.2 \
&& bundle install \
&& cd /app \
&& gem install nokogiri --platform=ruby \
&& bundle config set force_ruby_platform true \
&& gem install bundler:2.1.2 \
&& bundle install \
&& bundle update
ENTRYPOINT ["bundle", "exec", "middleman"]
CMD ["server"]
WORKDIR "/app"
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8