-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (26 loc) · 989 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
FROM perl:5.41.2-slim-threaded AS compile-image
RUN apt-get update
RUN apt-get update && apt-get install -y \
curl tar build-essential \
wget gnupg ca-certificates \
libssl-dev \
g++ git zlib1g zlib1g-dev
RUN curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
&& chmod +x cpanm \
&& ./cpanm App::cpanminus \
&& curl -fsSL https://raw.githubusercontent.com/skaji/cpm/main/cpm \
| perl - install -g App::cpm
COPY cpanfile ./
RUN cpm install --global --show-build-log-on-failure
FROM perl:5.41.2-slim-threaded AS build-image
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
curl tar wget ca-certificates \
git openssh-client
COPY --from=compile-image /usr/local /usr/local
WORKDIR /opt
ARG VER=1.0
COPY ./lib /opt/lib
COPY ./script /opt/script
EXPOSE 3000
# docker build --progress plain --tag mojo-darkpan:latest .
# docker run -init mojo-darkpan:latest script/darkpan