mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-12-26 00:52:46 +00:00
dockerfile: use new ENV syntax
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
e3d6eb28dd
commit
bc4817cc19
|
|
@ -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 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
|
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
|
RUN mkdir -p /home/tunasync-scripts
|
||||||
CMD /bin/bash
|
CMD ["/bin/bash"]
|
||||||
|
|
||||||
|
|
||||||
# ====================
|
# ====================
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,5 @@ RUN mkdir -p /tmp/nix.unpack && \
|
||||||
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin && \
|
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin && \
|
||||||
rm -rf /tmp/nix.unpack
|
rm -rf /tmp/nix.unpack
|
||||||
|
|
||||||
ENV HOME=/tmp
|
ENV HOME /tmp
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@ FROM ruby:2.7-alpine
|
||||||
RUN gem install rubygems-mirror
|
RUN gem install rubygems-mirror
|
||||||
RUN apk add bash curl
|
RUN apk add bash curl
|
||||||
# the command timeout provided by old verison of busybox was incompatible with that from coreutils and is compatible now.
|
# the command timeout provided by old verison of busybox was incompatible with that from coreutils and is compatible now.
|
||||||
ENV BUSYBOX=0
|
ENV BUSYBOX 0
|
||||||
ENV HOME=/tmp
|
ENV HOME /tmp
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ FROM julia:1.5
|
||||||
LABEL description="A community maintained docker script to set up julia mirror easily."
|
LABEL description="A community maintained docker script to set up julia mirror easily."
|
||||||
LABEL maintainer="Johnny Chen <johnnychen94@hotmail.com>"
|
LABEL maintainer="Johnny Chen <johnnychen94@hotmail.com>"
|
||||||
|
|
||||||
ENV JULIA_DEPOT_PATH="/opt/julia"
|
ENV JULIA_DEPOT_PATH "/opt/julia"
|
||||||
|
|
||||||
RUN adduser --uid 2000 tunasync && \
|
RUN adduser --uid 2000 tunasync && \
|
||||||
julia -e 'using Pkg; pkg"add StorageMirrorServer@0.2.0"' && \
|
julia -e 'using Pkg; pkg"add StorageMirrorServer@0.2.0"' && \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue