Add full dockurr/windows source with rego customizations
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
- Includes complete dockurr/windows source (not just FROM image) - Added openssh-client and sshpass to Dockerfile - Added SSH key for Windows VM access - Added VPN automation scripts (vpn-login.js, socks5.js, vpn.bat) - Added Windows setup scripts (install-nodejs.ps1, setup-autologin-sshd.ps1, setup-ssh-keys.ps1) - Added rego-startup.sh for script deployment and network setup - Scripts auto-copy to shared folder on container start 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,29 +1,53 @@
|
||||
FROM dockurr/windows:latest
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
# Install SSH client and utilities
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
openssh-client \
|
||||
sshpass \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
ARG VERSION_ARG="latest"
|
||||
FROM scratch AS build-amd64
|
||||
|
||||
# Create SSH directory
|
||||
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
|
||||
COPY --from=qemux/qemu:7.29 / /
|
||||
|
||||
# Copy SSH key for Windows VM access
|
||||
COPY id_ed25519-lenovo /root/.ssh/id_ed25519-lenovo
|
||||
RUN chmod 600 /root/.ssh/id_ed25519-lenovo
|
||||
ARG TARGETARCH
|
||||
ARG DEBCONF_NOWARNINGS="yes"
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
ARG DEBCONF_NONINTERACTIVE_SEEN="true"
|
||||
|
||||
# Create directory for VPN scripts
|
||||
RUN mkdir -p /opt/rego-scripts
|
||||
RUN set -eu && \
|
||||
apt-get update && \
|
||||
apt-get --no-install-recommends -y install \
|
||||
samba \
|
||||
wimtools \
|
||||
dos2unix \
|
||||
cabextract \
|
||||
libxml2-utils \
|
||||
libarchive-tools \
|
||||
openssh-client \
|
||||
sshpass && \
|
||||
wget "https://github.com/gershnik/wsdd-native/releases/download/v1.22/wsddn_1.22_${TARGETARCH}.deb" -O /tmp/wsddn.deb -q && \
|
||||
dpkg -i /tmp/wsddn.deb && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
# Copy all VPN/setup scripts
|
||||
COPY scripts/ /opt/rego-scripts/
|
||||
RUN chmod +x /opt/rego-scripts/*.js /opt/rego-scripts/*.bat 2>/dev/null || true
|
||||
COPY --chmod=755 ./src /run/
|
||||
COPY --chmod=755 ./assets /run/assets
|
||||
|
||||
# Copy custom startup hook
|
||||
COPY rego-startup.sh /etc/cont-init.d/99-rego-startup
|
||||
RUN chmod +x /etc/cont-init.d/99-rego-startup
|
||||
# Rego-tunnel customizations: SSH key and VPN scripts
|
||||
RUN mkdir -p /root/.ssh /opt/rego-scripts
|
||||
COPY --chmod=600 ./rego/id_ed25519-lenovo /root/.ssh/id_ed25519-lenovo
|
||||
COPY --chmod=755 ./rego/*.js ./rego/*.bat ./rego/*.ps1 ./rego/README.md /opt/rego-scripts/
|
||||
|
||||
LABEL maintainer="alexz"
|
||||
LABEL description="dockurr/windows with SSH client, VPN scripts, and rego-tunnel customizations"
|
||||
ADD --chmod=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.49-0/virtio-win-1.9.49.tar.xz /var/drivers.txz
|
||||
|
||||
FROM dockurr/windows-arm:${VERSION_ARG} AS build-arm64
|
||||
FROM build-${TARGETARCH}
|
||||
|
||||
ARG VERSION_ARG="0.00"
|
||||
RUN echo "$VERSION_ARG" > /run/version
|
||||
|
||||
VOLUME /storage
|
||||
EXPOSE 3389 8006
|
||||
|
||||
ENV VERSION="11"
|
||||
ENV RAM_SIZE="4G"
|
||||
ENV CPU_CORES="2"
|
||||
ENV DISK_SIZE="64G"
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]
|
||||
|
||||
Reference in New Issue
Block a user