Require COMMAND env var, remove default, add docker-compose example
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 16s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 16s
This commit is contained in:
@@ -14,8 +14,6 @@ RUN apk add --no-cache ca-certificates
|
|||||||
|
|
||||||
COPY --from=builder /app/sshserver /usr/local/bin/sshserver
|
COPY --from=builder /app/sshserver /usr/local/bin/sshserver
|
||||||
|
|
||||||
ENV COMMAND /app/tui
|
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
||||||
CMD ["/usr/local/bin/sshserver"]
|
CMD ["/usr/local/bin/sshserver"]
|
||||||
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
services:
|
||||||
|
ssh-server:
|
||||||
|
image: dcorral/ssh-remote:latest
|
||||||
|
ports:
|
||||||
|
- "22:22"
|
||||||
|
volumes:
|
||||||
|
- ../tui:/app/tui:ro
|
||||||
|
cap_add:
|
||||||
|
- SYS_CHROOT
|
||||||
|
environment:
|
||||||
|
- COMMAND=/app/tui
|
||||||
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user