From 7ed02df6b3dce0fc0e0682953edc281cbba1e084 Mon Sep 17 00:00:00 2001 From: Richard Sperry Date: Tue, 15 Apr 2025 15:15:38 -0700 Subject: [PATCH] changed dockerfile --- vscode/Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vscode/Dockerfile b/vscode/Dockerfile index 1d8c103..5af17f6 100755 --- a/vscode/Dockerfile +++ b/vscode/Dockerfile @@ -1,7 +1,7 @@ ARG BUILD_FROM=ghcr.io/hassio-addons/debian-base:7.8.1 # hadolint ignore=DL3006 FROM ${BUILD_FROM} -ENV DOCKER_BUILDKIT=1 + # Confiure locale ENV \ LANG=en_US.UTF-8 \ @@ -63,11 +63,14 @@ RUN if [ "${BUILD_ARCH}" = "aarch64" ]; then HA_CLI_URL="https://github.com/home && chmod +x "/usr/bin/ha" #Copy root file system -COPY --chown=root:root --chmod=755 rootfs / +COPY rootfs / +RUN chown -R root:root /root \ +&& chown -R root:root /etc/s6-overlay/s6-rc.d/ \ +&& chmod 755 -R /etc/s6-overlay/s6-rc.d/ # Copy default config WORKDIR /root/.config/code-server/defaults -COPY --chown=root:root --chmod=600 "rootfs/usr/lib/code-server/defaults/config.yaml" "config.yaml" +COPY "rootfs/usr/lib/code-server/defaults/config.yaml" "config.yaml" # Install Oh My ZSH # hadolint ignore=SC2086 @@ -77,8 +80,9 @@ RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master && sed -i -e "s#bin/bash#bin/zsh#" /etc/passwd # Install Python packages +COPY ./requirements.txt /tmp/requirements.txt RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \ - pip3 install --no-cache-dir -r rootfs/usr/lib/code-server/defaults/requirements.txt + pip3 install --no-cache-dir -r /tmp/requirements.txt # Cleanup apt cache RUN apt-get purge -y --auto-remove \