changed dockerfile

This commit is contained in:
Richard Sperry 2025-04-15 15:15:38 -07:00
parent 09f19e001c
commit 7ed02df6b3

View file

@ -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 \