diff --git a/code-server/code-server.Dockerfile b/code-server/code-server.Dockerfile index 19d4075..8676a04 100644 --- a/code-server/code-server.Dockerfile +++ b/code-server/code-server.Dockerfile @@ -11,6 +11,7 @@ ARG S6_OVERLAY_VERSION=3.1.6.2 # Environment settings ARG DEBIAN_FRONTEND="noninteractive" ENV HOME="/config" +ENV TZ="${TZ-America/New_York}" # Set environment variables ENV PUID=1000 @@ -33,8 +34,15 @@ RUN \ net-tools \ curl wget \ netcat-traditional \ - sudo dpkg libicu74 equivs $APT_PACKAGES + sudo dpkg libicu74 equivs tzdata $APT_PACKAGES +# Set timezone +RUN \ + echo $TZ > /etc/timezone && \ + ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \ + dpkg-reconfigure --frontend noninteractive tzdata + +# Build dummy package for Microsoft PowerShell RUN equivs-control /tmp/libicu72 && \ echo "Section: misc" > /tmp/libicu72 && \ echo "Priority: optional" >> /tmp/libicu72 && \ diff --git a/code-server/docker-compose.yml b/code-server/docker-compose.yml index bd103d0..57a0e9d 100644 --- a/code-server/docker-compose.yml +++ b/code-server/docker-compose.yml @@ -5,7 +5,7 @@ services: # context: ../../ dockerfile: ./code-server.Dockerfile args: - APT_PACKAGES: "git-lfs git-filter-repo zsh fish" + APT_PACKAGES: "git-lfs git-filter-repo zsh fish httrack" INSTALL_CONTRIBUTOR_EXTENSIONS: "mhutchie.git-graph yzhang.markdown-all-in-one mechatroner.rainbow-csv" INSTALL_DEVELOPER_EXTENSIONS: "" container_name: code-server