summaryrefslogtreecommitdiffstats
path: root/Dockerfile.alpine
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile.alpine')
-rw-r--r--Dockerfile.alpine8
1 files changed, 6 insertions, 2 deletions
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
index 844b53c..141d56f 100644
--- a/Dockerfile.alpine
+++ b/Dockerfile.alpine
@@ -1,11 +1,15 @@
FROM alpine
ARG TARGETARCH
-COPY ./dist/${TARGETARCH}/ttyd /usr/bin/ttyd
+
+# Dependencies
RUN apk add --no-cache bash tini
+# Application
+COPY ./dist/${TARGETARCH}/ttyd /usr/bin/ttyd
+
EXPOSE 7681
WORKDIR /root
ENTRYPOINT ["/sbin/tini", "--"]
-CMD ["ttyd", "bash"]
+CMD ["ttyd", "-W", "bash"]