mirror of https://github.com/bjdgyc/anylink.git
修改docker源地址
This commit is contained in:
parent
9cf5b5f38e
commit
b376552085
|
@ -9,13 +9,14 @@ RUN npx browserslist@latest --update-db \
|
||||||
|
|
||||||
# server
|
# server
|
||||||
FROM golang:alpine as builder_golang
|
FROM golang:alpine as builder_golang
|
||||||
ENV GOPROXY=https://goproxy.io \
|
#TODO 本地打包时使用镜像
|
||||||
GOOS=linux
|
#ENV GOPROXY=https://goproxy.io
|
||||||
|
ENV GOOS=linux
|
||||||
WORKDIR /anylink
|
WORKDIR /anylink
|
||||||
COPY . /anylink
|
COPY . /anylink
|
||||||
COPY --from=builder_node /web/ui /anylink/server/ui
|
COPY --from=builder_node /web/ui /anylink/server/ui
|
||||||
|
|
||||||
#本地打包时使用镜像
|
#TODO 本地打包时使用镜像
|
||||||
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
RUN cd /anylink/server;go build -o anylink -ldflags "-X main.COMMIT_ID=$(git rev-parse HEAD)" \
|
RUN cd /anylink/server;go build -o anylink -ldflags "-X main.COMMIT_ID=$(git rev-parse HEAD)" \
|
||||||
|
@ -34,7 +35,7 @@ COPY ./server/conf /app/conf
|
||||||
COPY ./server/files /app/files
|
COPY ./server/files /app/files
|
||||||
COPY docker_entrypoint.sh /app/
|
COPY docker_entrypoint.sh /app/
|
||||||
|
|
||||||
#本地打包时使用镜像
|
#TODO 本地打包时使用镜像
|
||||||
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
||||||
RUN apk add --no-cache bash iptables && ls /app
|
RUN apk add --no-cache bash iptables && ls /app
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue