Generate locales for docker, fix arm images
This commit is contained in:
parent
12b4700397
commit
c2f9cb7066
@ -1,4 +1,4 @@
|
||||
FROM arm32v7/debian:buster
|
||||
FROM multiarch/debian-debootstrap:armhf-buster
|
||||
|
||||
LABEL Lan Tian "lantian@lantian.pub"
|
||||
ENV GOOS=linux GOARCH=arm
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM arm64v8/debian:buster
|
||||
FROM multiarch/debian-debootstrap:arm64-buster
|
||||
|
||||
LABEL Lan Tian "lantian@lantian.pub"
|
||||
ENV GOOS=linux GOARCH=arm64
|
||||
|
@ -4,9 +4,11 @@ LABEL Lan Tian "lantian@lantian.pub"
|
||||
ENV GOOS=linux GOARCH=amd64
|
||||
WORKDIR /root
|
||||
COPY . .
|
||||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang traceroute \
|
||||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang traceroute locales \
|
||||
&& cd /root && go build -o /proxy \
|
||||
&& cd / && rm -rf /root/* \
|
||||
&& printf "en_US.UTF-8 UTF-8\nzh_CN.UTF-8 UTF-8\n" > /etc/locale.gen \
|
||||
&& locale-gen \
|
||||
&& apt-get -qq purge -y golang \
|
||||
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
||||
|
||||
|
@ -1,12 +1,14 @@
|
||||
FROM arm32v7/debian:buster
|
||||
FROM multiarch/debian-debootstrap:armhf-buster
|
||||
|
||||
LABEL Lan Tian "lantian@lantian.pub"
|
||||
ENV GOOS=linux GOARCH=arm
|
||||
WORKDIR /root
|
||||
COPY . .
|
||||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang traceroute \
|
||||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang traceroute locales \
|
||||
&& cd /root && go build -o /proxy \
|
||||
&& cd / && rm -rf /root/* \
|
||||
&& printf "en_US.UTF-8 UTF-8\nzh_CN.UTF-8 UTF-8\n" > /etc/locale.gen \
|
||||
&& locale-gen \
|
||||
&& apt-get -qq purge -y golang \
|
||||
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
||||
|
||||
|
@ -1,12 +1,14 @@
|
||||
FROM arm64v8/debian:buster
|
||||
FROM multiarch/debian-debootstrap:arm64-buster
|
||||
|
||||
LABEL Lan Tian "lantian@lantian.pub"
|
||||
ENV GOOS=linux GOARCH=arm64
|
||||
WORKDIR /root
|
||||
COPY . .
|
||||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang traceroute \
|
||||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang traceroute locales \
|
||||
&& cd /root && go build -o /proxy \
|
||||
&& cd / && rm -rf /root/* \
|
||||
&& printf "en_US.UTF-8 UTF-8\nzh_CN.UTF-8 UTF-8\n" > /etc/locale.gen \
|
||||
&& locale-gen \
|
||||
&& apt-get -qq purge -y golang \
|
||||
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
||||
|
||||
|
@ -4,9 +4,11 @@ LABEL Lan Tian "lantian@lantian.pub"
|
||||
ENV GOOS=linux GOARCH=386
|
||||
WORKDIR /root
|
||||
COPY . .
|
||||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang traceroute \
|
||||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang traceroute locales \
|
||||
&& cd /root && go build -o /proxy \
|
||||
&& cd / && rm -rf /root/* \
|
||||
&& printf "en_US.UTF-8 UTF-8\nzh_CN.UTF-8 UTF-8\n" > /etc/locale.gen \
|
||||
&& locale-gen \
|
||||
&& apt-get -qq purge -y golang \
|
||||
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user