forked from italia/developers.italia.it
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (42 loc) · 953 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
43
44
45
46
47
48
49
50
51
FROM docker.io/cimg/ruby:3.2-browsers
ENV PORT 4000
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES true
WORKDIR /usr/src/developers.italia.it
USER root
RUN apt-get update \
&& apt-get install -y wait-for-it \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER ${RUNAS}
# Copy useful files inside the workdir
COPY .well-known .well-known
COPY _data _data
COPY _includes _includes
COPY _layouts _layouts
COPY _platforms _platforms
COPY _plugins _plugins
COPY _posts _posts
COPY assets assets
COPY en en
COPY it it
COPY scripts scripts
COPY 403.html .
COPY 404.html .
COPY 500.html .
COPY _config.yml .
COPY favicon.ico .
COPY Gemfile .
COPY Gemfile.lock .
COPY LICENSE .
COPY Makefile .
COPY webpack.common.js .
COPY webpack.dev.js .
COPY webpack.prod.js .
COPY babel.config.js .
COPY package-lock.json .
COPY package.json .
RUN make include-npm-deps
RUN make bundle-install
RUN make download-data
EXPOSE 4000 8080 35729
CMD ["make", "local"]