We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5e354a commit e4e8f5aCopy full SHA for e4e8f5a
1 file changed
Dockerfile
@@ -4,6 +4,10 @@ LABEL org.opencontainers.image.source=https://github.com/City-of-Helsinki/profil
4
LABEL org.opencontainers.image.description="Helsinki Profile GDPR API Tester"
5
LABEL org.opencontainers.image.licenses=MIT
6
7
+RUN set -eux; \
8
+ apt-get update; \
9
+ apt-get install -y --no-install-recommends rlwrap
10
+
11
WORKDIR /app
12
13
COPY requirements.txt requirements.txt
@@ -14,4 +18,6 @@ COPY /gdpr_api_tester /app/gdpr_api_tester
14
18
15
19
EXPOSE 8888
16
20
17
-CMD ["python", "-m", "gdpr_api_tester"]
21
+# The sleep is needed to make rlwrap work. Without the sleep rlwrap can't determine the terminal dimensions.
22
+# See this issue for more information: https://github.com/moby/moby/issues/28009
23
+CMD sleep 0.1; rlwrap python -m gdpr_api_tester
0 commit comments