From 57c75b6a09aba5c65718c0f87abac7f32e95aace Mon Sep 17 00:00:00 2001 From: Doro Wu Date: Mon, 9 Apr 2018 19:22:00 +0900 Subject: [PATCH] fix: sticky loss (issue #66) --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 989d3ba..4c37358 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM ubuntu:16.04 as system ARG localbuild -RUN if [ "x$localbuild" != "x" ]; then sed -i 's#http://archive.ubuntu.com/#http://qnap.dorowu.com/#' /etc/apt/sources.list; fi +RUN if [ "x$localbuild" != "x" ]; then sed -i 's#http://archive.ubuntu.com/#http://tw.archive.ubuntu.com/#' /etc/apt/sources.list; fi # built-in packages RUN apt-get update \ @@ -55,7 +55,7 @@ RUN apt-get update \ FROM ubuntu:16.04 as builder ARG localbuild -RUN if [ "x$localbuild" != "x" ]; then sed -i 's#http://archive.ubuntu.com/#http://qnap.dorowu.com/#' /etc/apt/sources.list; fi +RUN if [ "x$localbuild" != "x" ]; then sed -i 's#http://archive.ubuntu.com/#http://tw.archive.ubuntu.com/#' /etc/apt/sources.list; fi RUN apt-get update \ && apt-get install -y --no-install-recommends curl ca-certificates @@ -80,10 +80,9 @@ RUN cd /src/web \ ################################################################################ # merge ################################################################################ -FROM scratch +FROM system LABEL maintainer="fcwu.tw@gmail.com" -COPY --from=system / / COPY --from=builder /src/web/dist/ /usr/local/lib/web/frontend/ COPY image /