-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
33 lines (21 loc) · 884 Bytes
/
Dockerfile.dev
File metadata and controls
33 lines (21 loc) · 884 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
ARG PDFCPU_VERSION=0.11.1
ARG GO_VERSION=1.25.8
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.2-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 -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.4'
ENV PATH="$PATH:/root/.cargo/bin/"
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"]