Skip to content

Commit 47649c4

Browse files
authored
Dockerfile hadolint fixes, part 2 (PlummersSoftwareLLC#744)
1 parent ab77073 commit 47649c4

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

PrimeClipper/solution_1/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ RUN apt-get update && \
1212
rm -rf /var/lib/apt/lists/* && \
1313
rm "${HARBOUR_PKG}"
1414

15-
COPY . /opt/
15+
COPY . .
1616

17-
RUN hbmk2 -gtstd -optim -cflag=-O3 ./sieve.prg
18-
RUN hbmk2 -gtstd -optim -cflag=-O3 ./sievedb.prg
19-
RUN hbmk2 -gtstd -optim -cflag=-O3 ./sieve_xharbour.prg
17+
RUN hbmk2 -gtstd -optim -cflag=-O3 ./sieve.prg \
18+
&& hbmk2 -gtstd -optim -cflag=-O3 ./sievedb.prg \
19+
&& hbmk2 -gtstd -optim -cflag=-O3 ./sieve_xharbour.prg
2020

2121
CMD [ "bash", "./run.sh" ]

PrimeCrystal/solution_2/Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ ENV CRYSTAL_VER="1.1"
44

55
WORKDIR /opt
66

7-
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl && \
7+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
8+
RUN apt-get update && apt-get install -y curl && \
9+
apt-get clean && \
10+
rm -rf /var/lib/apt/lists/* && \
811
curl -fsSL https://crystal-lang.org/install.sh | bash -s -- --version="${CRYSTAL_VER}"
912
# compiler build has been finished here, image ready for use...
1013

0 commit comments

Comments
 (0)