This commit is contained in:
parent
1817acf8dc
commit
f5208bfb47
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user