From 66ef6399563b6856e6b2b4a7fd89d45c393d2cb0 Mon Sep 17 00:00:00 2001 From: bjdgyc Date: Mon, 5 Jul 2021 13:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9B=AE=E5=BD=95=E5=88=B0=20conf=20=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index bab8015..2ebaf26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN npx browserslist@latest --update-db \ && ls /web/ui # server -FROM golang:alpine as builder_golang +FROM golang:1.16-alpine as builder_golang #TODO 本地打包时使用镜像 #ENV GOPROXY=https://goproxy.io ENV GOOS=linux @@ -29,12 +29,13 @@ LABEL maintainer="github.com/bjdgyc" ENV IPV4_CIDR="192.168.10.0/24" WORKDIR /app -COPY --from=builder_node /web/ui /app/ui COPY --from=builder_golang /anylink/server/anylink /app/ -COPY ./server/conf /app/conf -COPY ./server/files /app/files COPY docker_entrypoint.sh /app/ +COPY ./server/conf /app/conf +COPY ./server/files /app/conf/files + + #TODO 本地打包时使用镜像 #RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories RUN apk add --no-cache bash iptables \