14 lines
486 B
Docker
14 lines
486 B
Docker
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 git \
|
|
&& cd /root && go get github.com/gorilla/handlers && go build -o /frontend \
|
|
&& cd / && rm -rf /root/* \
|
|
&& apt-get -qq purge -y golang git \
|
|
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
|
|
|
ENTRYPOINT ["/frontend"]
|