-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
25 lines (22 loc) · 1.04 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
FROM ruby:3.4
MAINTAINER Pavel.Lobashov "[email protected]"
RUN apt-get update && apt-get -y -q install git curl
RUN apt-get update && apt-get -y -q install libmagic-dev \
poppler-utils \
time
RUN gem install bundler
COPY . /doc-builder-testing
WORKDIR /doc-builder-testing
RUN bundle config set without 'development' && \
bundle install
# Install gpg key
RUN mkdir -p -m 700 ~/.gnupg
RUN curl -fsSL https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE | gpg --no-default-keyring --keyring gnupg-ring:/tmp/onlyoffice.gpg --import
RUN chmod 644 /tmp/onlyoffice.gpg
RUN chown root:root /tmp/onlyoffice.gpg
RUN mv /tmp/onlyoffice.gpg /usr/share/keyrings/onlyoffice.gpg
# Write repository & install docbuilder
RUN echo "deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] http://download.onlyoffice.com/repo/debian squeeze main" >> /etc/apt/sources.list.d/onlyoffice.list && \
apt-get -y update && \
apt-get -y install onlyoffice-documentbuilder
ENTRYPOINT ["rake"]