This repository was archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
80 lines (71 loc) · 2 KB
/
Dockerfile
File metadata and controls
80 lines (71 loc) · 2 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright 2019 Autodesk, Inc. All rights reserved.
#
# Use of this software is subject to the terms of the Autodesk license agreement
# provided at the time of installation or download, or which otherwise accompanies
# this software in either electronic or hard copy form.
#
# dockerfile to spin up a container suitable for generation of documentation
FROM centos:7
LABEL maintainer="https://shotgridsoftware.com/"
#
# Build
#
# Install build packages
RUN yum update -y && \
yum install -y epel-release && \
yum install -y \
# Generic build packages
autoconf \
automake \
gcc \
gcc-c++ \
git \
libtool \
make \
nasm \
perl-devel \
zlib-devel \
tar \
nc \
xz \
# sphinx
pandoc \
# Python libs
python3 \
python-pip \
# Ruby
libyaml-devel \
openssl-devel \
libreadline-dev \
zlib-devel \
python-pyside \
yum clean all
# Ruby
ENV RUBY_MAJOR_VER=2.5 \
RUBY_VER=2.5.3 \
PATH=/opt/ruby-2.5/bin:$PATH
RUN DIR=$(mktemp -d) && cd ${DIR} && \
curl -OLs http://ftp.ruby-lang.org/pub/ruby/ruby-$RUBY_VER.tar.gz && \
tar xzf ruby-$RUBY_VER.tar.gz && \
cd ruby-$RUBY_VER && \
./configure --prefix=/opt/ruby-${RUBY_VER} --bindir=/opt/ruby-${RUBY_VER}/bin --disable-install-doc && \
make -j 8 && \
make install && \
make distclean && \
rm -rf ${DIR} && \
cd /opt/ && ln -sfn ruby-${RUBY_VER} ruby-${RUBY_MAJOR_VER}
RUN mkdir -p /app
WORKDIR /app
COPY ./Gemfile /app
COPY ./Gemfile.lock /app
COPY ./requirements.txt /app
# Update setuptools to the latest Python 2.7 compatible version. This is
# necessary for install of Pygments 2.6.1, which is a dependency of Sphinx.
RUN pip install --upgrade setuptools==44.0.0
# Install any needed packages specified in requirements.txt
RUN python3 -m pip install -U pip
RUN pip3 install -r requirements.txt
# note: stay on bundler 1.17 to be travis compatible
RUN gem install bundler -v 1.17.2 --no-document
RUN bundle config --global jobs 7
RUN bundle install