File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,12 @@ RUN apt-get update -y \
19
19
unzip wget zip \
20
20
# Clean up to reduce docker image size
21
21
&& apt-get clean \
22
- && rm -rf /var/lib/apt/lists/*
22
+ && rm -rf /var/lib/apt/lists/* \
23
+ # Make sure the directory we'll mount and reference is there
24
+ && mkdir -p /data
23
25
24
- RUN mkdir -p /data
25
- WORKDIR /data
26
26
USER nonroot
27
+ WORKDIR /data
27
28
COPY actions-services.yml /data
28
29
COPY composer-install.sh /data
29
30
COPY composer.json /data
@@ -38,7 +39,8 @@ COPY .travis.yml /data
38
39
COPY SilMock/ /data/SilMock
39
40
40
41
USER root
41
- RUN cd /data && ./composer-install.sh
42
- RUN mv /data/composer.phar /usr/bin/composer
43
- RUN /usr/bin/composer install
42
+ WORKDIR /data
43
+ RUN ./composer-install.sh \
44
+ && mv /data/composer.phar /usr/bin/composer \
45
+ && /usr/bin/composer install
44
46
USER nonroot
You can’t perform that action at this time.
0 commit comments