drone-ci-golang/Dockerfile

19 lines
465 B
Docker
Raw Normal View History

2020-01-07 09:14:46 +08:00
FROM alpine
MAINTAINER LiXunHuan(lxh@cxh.cn)
2020-01-07 10:58:54 +08:00
# 创建工作目录修改alpine源为中科大的源安装必要工具
2020-01-07 09:14:46 +08:00
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
2020-01-07 10:21:59 +08:00
COPY go-app ./
2020-01-07 09:14:46 +08:00
ENV TZ=Asia/Shanghai
EXPOSE 8080
ENTRYPOINT ./demo-app