-
Notifications
You must be signed in to change notification settings - Fork 127
/
Dockerfile
40 lines (31 loc) · 927 Bytes
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM debian:bookworm-slim
MAINTAINER Hossam Hammady <[email protected]>
RUN apt-get update -qq && \
apt-get install -y \
libgd-gd2-perl libgd-text-perl \
libdbd-mysql-perl libdbi-perl \
libconfig-yaml-perl \
make gcc g++ \
unzip \
curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN cd / && \
curl -L -o zopfli.zip https://github.com/google/zopfli/archive/master.zip && \
unzip zopfli.zip && \
cd zopfli-master && \
make zopflipng && \
cp zopflipng /usr/local/bin/
WORKDIR /app
RUN curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org -n Mojolicious
ADD config /app/config
ADD lib /app/lib
ADD res /app/res
ADD script /app/script
ADD Makefile.PL /app/Makefile.PL
RUN cd /app && \
perl Makefile.PL && \
make && \
make install
RUN sed -i 's/localhost/mysql/' /app/config/database.yaml
CMD /app/script/generate.pl help