drone-ci-golang/Dockerfile
李寻欢 f5208bfb47
All checks were successful
continuous-integration/drone/push Build is passing
添加 'Dockerfile'
2020-01-07 09:14:46 +08:00

19 lines
419 B
Docker

FROM alpine
MAINTAINER LiXunHuan(lxh@cxh.cn)
# 修改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
COPY demo-app ./
ENV TZ=Asia/Shanghai
EXPOSE 8080
ENTRYPOINT ./demo-app