1 Star 0 Fork 0

zhaowen5168 / realworld

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 462 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhao 提交于 2023-12-07 11:36 . realworld
FROM golang:1.18 AS builder
COPY . /src
WORKDIR /src
RUN GOPROXY=https://goproxy.cn make build
FROM debian:stable-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
netbase \
&& rm -rf /var/lib/apt/lists/ \
&& apt-get autoremove -y && apt-get autoclean -y
COPY --from=builder /src/bin /app
WORKDIR /app
EXPOSE 8000
EXPOSE 9000
VOLUME /data/conf
CMD ["./realworld", "-conf", "/data/conf"]
Go
1
https://gitee.com/zhaowen5168/realworld.git
git@gitee.com:zhaowen5168/realworld.git
zhaowen5168
realworld
realworld
master

搜索帮助