summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: d312df15083197e0f2af3f9af380c7c52406b4f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM ubuntu:20.04

ARG TARGETARCH

# 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", "-W", "bash"]