Skip to content

Commit d17bfdb

Browse files
committed
Use "set -x" with RUN in Dockerfile
1 parent 98d5ab3 commit d17bfdb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ FROM python:3.8-slim-buster as build
33
# As of 2019-11-29, python:3.8-slim-stretch doesn't exist. See https://github.com/docker-library/python/issues/428
44
WORKDIR /app
55
COPY requirements.txt .
6-
RUN sed -i 's/@SECLEVEL=2/@SECLEVEL=1/' /etc/ssl/openssl.cnf && \
6+
RUN set -x && \
7+
sed -i 's/@SECLEVEL=2/@SECLEVEL=1/' /etc/ssl/openssl.cnf && \
78
pip install --no-cache-dir -U pip wheel && \
89
pip install --no-cache-dir -r ./requirements.txt
910
# Note: Regarding SECLEVEL, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927461
1011
# Lowering the SECLEVEL causes more https certificates to be valid.
1112
COPY ircurltitlebot ircurltitlebot
12-
RUN groupadd -g 999 app && \
13+
RUN set -x && \
14+
groupadd -g 999 app && \
1315
useradd -r -m -u 999 -g app app
1416
USER app
1517
ENTRYPOINT ["python", "-m", "ircurltitlebot"]
@@ -20,7 +22,8 @@ FROM build as test
2022
WORKDIR /app
2123
USER root
2224
COPY Makefile pylintrc pyproject.toml requirements-dev.in setup.cfg vulture.txt ./
23-
RUN pip install --no-cache-dir -U -r requirements-dev.in && \
25+
RUN set -x && \
26+
pip install --no-cache-dir -U -r requirements-dev.in && \
2427
apt-get update && apt-get -y install make && \
2528
make test
2629

0 commit comments

Comments
 (0)