-
Notifications
You must be signed in to change notification settings - Fork 190
Expand file tree
/
Copy pathDockerfile.dev
More file actions
35 lines (22 loc) · 931 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
35 lines (22 loc) · 931 Bytes
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
ARG PDFCPU_VERSION=0.15.0
ARG GO_VERSION=1.26.6
FROM golang:${GO_VERSION} AS pdfcpu-build
ARG PDFCPU_VERSION
RUN go install github.com/pdfcpu/pdfcpu/cmd/pdfcpu@v${PDFCPU_VERSION}
FROM ruby:4.0.6-slim
WORKDIR /app
ENV POSTGRES_VERSION=15
RUN apt update -qq && \
apt-get install nodejs build-essential curl git pkg-config libpq-dev libclang-dev postgresql-common libyaml-dev libjemalloc2 -y && \
curl https://sh.rustup.rs -sSf | bash -s -- -y && \
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -i -v $POSTGRES_VERSION
COPY --from=pdfcpu-build /go/bin/pdfcpu /usr/local/bin/pdfcpu
ENV BUNDLER_VERSION='4.0.19'
ENV PATH="$PATH:/root/.cargo/bin/"
ENV LD_PRELOAD=libjemalloc.so.2
COPY ./Gemfile /app/Gemfile
COPY ./Gemfile.lock /app/Gemfile.lock
RUN gem install bundler --no-document -v '4.0.4'
RUN bundle config set build.nokogiri --use-system-libraries && \
bundle install
CMD ["./scripts/start.dev.sh"]