summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 08:14:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 08:14:42 +0000
commit6963f5f48ed68cb42b92e40c84014bd12cd377fc (patch)
treec2abdd80665f8494280a65417a9c21156ff41125 /Dockerfile
parentAdding upstream version 1.7.3. (diff)
downloadttyd-upstream.tar.xz
ttyd-upstream.zip
Adding upstream version 1.7.7.upstream/1.7.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 03603f4..d312df1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,15 @@
FROM ubuntu:20.04
ARG TARGETARCH
-COPY ./dist/${TARGETARCH}/ttyd /usr/bin/ttyd
+
+# Dependencies
RUN apt-get update && apt-get install -y --no-install-recommends tini && rm -rf /var/lib/apt/lists/*
+# Application
+COPY ./dist/${TARGETARCH}/ttyd /usr/bin/ttyd
+
EXPOSE 7681
WORKDIR /root
ENTRYPOINT ["/usr/bin/tini", "--"]
-CMD ["ttyd", "bash"]
+CMD ["ttyd", "-W", "bash"]