File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM metacpan/metacpan-base:latest
2
2
3
- RUN curl -sL https://deb.nodesource.com/setup_10.x | bash \
3
+ RUN apt install -f && curl -sL https://deb.nodesource.com/setup_10.x | bash \
4
+ && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
5
+ && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
4
6
&& apt-get update \
5
- && apt-get install -y nodejs npm \
6
- && npm install -g yarn
7
+ && apt-get install -y nodejs yarn
7
8
8
9
ENV PERL_MM_USE_DEFAULT=1 PERL_CARTON_PATH=/carton
9
10
10
11
COPY . /metacpan-web/
11
12
WORKDIR /metacpan-web
12
13
14
+ RUN yarn install
15
+
13
16
RUN cpanm --notest App::cpm \
14
17
&& cpm install -g Carton \
15
18
&& useradd -m metacpan-web -g users \
16
19
&& mkdir /carton \
17
20
&& cpm install -L /carton \
18
- && rm -fr /root/.cpanm /root/.perl-cpm /tmp/* \
19
- && yarn install
21
+ && rm -fr /root/.cpanm /root/.perl-cpm /tmp/*
20
22
21
23
RUN chown -R metacpan-web:users /metacpan-web /carton
22
24
You can’t perform that action at this time.
0 commit comments