-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 698 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 698 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
FROM ruby:3.3
RUN apt update && apt -y upgrade
RUN apt install -y \
libgd-dev libgd3 libgd-tools \
pkg-config ruby-dev build-essential valgrind python3
RUN printf "prefix=/usr\n\
exec_prefix=\${prefix}\n\
libdir=\${exec_prefix}/lib/x86_64-linux-gnu\n\
includedir=\${prefix}/include\n\
\n\
Name: gd\n\
Description: GD Graphics Library\n\
Version: 2.3\n\
Libs: -L\${libdir} -lgd\n\
Cflags: -I\${includedir}\n" \
> /usr/lib/x86_64-linux-gnu/pkgconfig/gd.pc
EXPOSE 3000
ENV PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
RUN gem update --system 4.0.4
COPY lib/imprint/version.rb ./lib/imprint/
COPY imprint-image.gemspec ./
COPY Gemfile Gemfile.lock ./
RUN bundle install
WORKDIR /app