2023-09-25 11:13:41 +08:00
|
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
|
|
# 创建工作目录,修改alpine源为中科大的源,安装必要工具
|
|
|
|
|
RUN mkdir -p /app && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \
|
|
|
|
|
apk update && \
|
|
|
|
|
apk upgrade && \
|
|
|
|
|
apk add ca-certificates && update-ca-certificates && \
|
|
|
|
|
apk add --update tzdata && \
|
|
|
|
|
rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# 这个go-app 是上面.drone.yml里面编译生成的文件,酌情修改
|
2023-09-25 11:35:12 +08:00
|
|
|
|
COPY linux_amd64_main ./
|
2023-09-25 11:13:41 +08:00
|
|
|
|
ENV TZ=Asia/Shanghai
|
|
|
|
|
|
|
|
|
|
EXPOSE 1323
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ./linux_amd64_main
|