dockerfile: use new ENV syntax

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Shengqi Chen 2025-09-03 10:39:49 +08:00
parent e3d6eb28dd
commit bc4817cc19
No known key found for this signature in database
4 changed files with 6 additions and 6 deletions

View File

@ -18,9 +18,9 @@ RUN if [ "$(uname -m)" != "x86_64" -a "$(uname -m)" != "i386" ]; then \
RUN python3 -m pip install gsutil --break-system-packages
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && apt-get install -y locales -qq && locale-gen
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 HOME=/tmp
ENV LANG en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 HOME=/tmp
RUN mkdir -p /home/tunasync-scripts
CMD /bin/bash
CMD ["/bin/bash"]
# ====================

View File

@ -16,5 +16,5 @@ RUN mkdir -p /tmp/nix.unpack && \
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin && \
rm -rf /tmp/nix.unpack
ENV HOME=/tmp
ENV HOME /tmp
CMD ["/bin/bash"]

View File

@ -2,5 +2,5 @@ FROM ruby:2.7-alpine
RUN gem install rubygems-mirror
RUN apk add bash curl
# the command timeout provided by old verison of busybox was incompatible with that from coreutils and is compatible now.
ENV BUSYBOX=0
ENV HOME=/tmp
ENV BUSYBOX 0
ENV HOME /tmp

View File

@ -8,7 +8,7 @@ FROM julia:1.5
LABEL description="A community maintained docker script to set up julia mirror easily."
LABEL maintainer="Johnny Chen <johnnychen94@hotmail.com>"
ENV JULIA_DEPOT_PATH="/opt/julia"
ENV JULIA_DEPOT_PATH "/opt/julia"
RUN adduser --uid 2000 tunasync && \
julia -e 'using Pkg; pkg"add StorageMirrorServer@0.2.0"' && \