mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-07 11:24:23 +01:00
Leverage Docker Layer System (#1191)
Dockerfile best practices recommend to move the installation of external dependencies before specific code. This will improve local development experience by improving Docker cache management and it will improve final Docker images compaction by sharing the first layers.
This commit is contained in:
committed by
GitHub
parent
7a57d76721
commit
c4beea2d0a
@@ -1,9 +1,13 @@
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user