2 Star 3 Fork 2

nature-lang / nature

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 541 Bytes
一键复制 编辑 原始数据 按行查看 历史
weiwenhao 提交于 2023-05-10 22:42 . docs: dockerfile comment update
# docker build -t naturelang/nature:latest --build-arg VERSION=v0.1.0-beta .
FROM alpine:latest
WORKDIR /app
ARG VERSION
ENV VERSION=$VERSION
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk update && apk upgrade && \
rm -rf /var/cache/apk/*
COPY release/nature-${VERSION}-linux-amd64.tar.gz /tmp/nature.tar.gz
RUN tar -xzf /tmp/nature.tar.gz -C /usr/local && rm /tmp/nature.tar.gz
# 将 /usr/local/nature/bin 目录添加到 PATH 环境变量中
ENV PATH="/usr/local/nature/bin:${PATH}"
C
1
https://gitee.com/nature-lang/nature.git
git@gitee.com:nature-lang/nature.git
nature-lang
nature
nature
master

搜索帮助