mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
718 B
30 lines
718 B
FROM ruby:4.0.1-alpine
|
|
|
|
ENV RAILS_ENV=test
|
|
ENV NODE_ENV=test
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apk add --no-cache \
|
|
build-base \
|
|
git \
|
|
libpq-dev \
|
|
yaml-dev \
|
|
nodejs \
|
|
yarn \
|
|
vips-dev \
|
|
chromium \
|
|
chromium-chromedriver \
|
|
&& wget -O pdfium-linux.tgz "https://github.com/docusealco/pdfium-binaries/releases/latest/download/pdfium-linux-musl-$(uname -m | sed 's/x86_64/x64/;s/aarch64/arm64/').tgz" \
|
|
&& mkdir -p /pdfium && tar -xzf pdfium-linux.tgz -C /pdfium \
|
|
&& cp /pdfium/lib/libpdfium.so /usr/lib/ \
|
|
&& rm -rf pdfium-linux.tgz /pdfium
|
|
|
|
COPY Gemfile Gemfile.lock ./
|
|
RUN bundle install --jobs 4 --retry 3
|
|
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
COPY . .
|