forked from developer-portal/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·33 lines (27 loc) · 944 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
FROM registry.fedoraproject.org/fedora
MAINTAINER Developer-portal <[email protected]>
ENV APPDIR="/opt/developerportal/website/"
ADD . "${APPDIR}"
WORKDIR "${APPDIR}"
RUN set -x && cd "${APPDIR}" && \
echo "Set disable_coredump false" >> /etc/sudo.conf && \
\
./setup.sh && \
\
dnf autoremove -y && \
dnf clean all -y && \
\
git reset --hard origin/master && \
git submodule update --init --recursive && \
cd content && \
git reset --hard origin/master && \
\
: 'This is a workaround for https://github.com/developer-portal/website/issues/88#issuecomment-850928283' \
git cherry-pick 1447b716c9cdf2417918cbf0b8566b665d22fd93 \
\
jekyll build
# Jekyll runs on port 4000 by default
EXPOSE 4000
# Update the content on every run of the container
#ENTRYPOINT LANG=en_US.UTF-8 bundle exec bash -i "$@"
CMD jekyll serve --force_polling -H 0.0.0.0 -l -I -w