4 Star 2 Fork 1

Gitee 极速下载/ip-laslant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/vicanso/location/
克隆/下载
Dockerfile 719 Bytes
一键复制 编辑 原始数据 按行查看 历史
vicanso 提交于 2020-10-15 21:38 . chore: update go modules
FROM node:14-alpine as webbuilder
COPY . /location
RUN apk update \
&& apk add git \
&& cd /location/web \
&& npm i \
&& npm run build \
&& rm -rf node_modules
FROM golang:1.15-alpine as builder
COPY --from=webbuilder /location /location
RUN apk update \
&& apk add git make \
&& go get -u github.com/gobuffalo/packr/v2/packr2 \
&& cd /location \
&& make build
FROM alpine
EXPOSE 7001
RUN addgroup -g 1000 go \
&& adduser -u 1000 -G go -s /bin/sh -D go \
&& apk add --no-cache ca-certificates
COPY --from=builder /location/location /usr/local/bin/location
USER go
WORKDIR /home/go
HEALTHCHECK --timeout=10s CMD [ "wget", "http://127.0.0.1:7001/ping", "-q", "-O", "-"]
CMD ["location"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/ip-laslant.git
git@gitee.com:mirrors/ip-laslant.git
mirrors
ip-laslant
ip-laslant
master

搜索帮助