在环境变量中配置USERNAME和PASSWORD
v1.0 Dockerfile:
FROM alpine:latest
ARG USERNAME
ARG PASSWORD
RUN apk add ttyd curl screen go python3 py3-pip openjdk21-jdk git nodejs npm vim nushell bash sudo
EXPOSE 2222
EXPOSE 8080
EXPOSE 80
CMD ["sh", "-c", "ttyd -W -p 2222 -c $USERNAME:$PASSWORD bash"]
v1.1 Dockerfile:
FROM alpine:latest
ARG USERNAME
ARG PASSWORD
RUN apk add ttyd curl screen go python3 py3-pip openjdk21-jdk git nodejs npm vim nushell bash sudo
EXPOSE 2222
EXPOSE 8080
EXPOSE 80
CMD ["sh", "-c", "ttyd -W -p 80 -c $USERNAME:$PASSWORD bash"]
Content type
Image
Digest
sha256:bfd161b28…
Size
354.9 MB
Last updated
about 1 year ago
docker pull lczws/alpine-vps:v1.1