parent
6285e45e34
commit
1428c11e5f
@ -0,0 +1,13 @@
|
|||||||
|
assets/
|
||||||
|
Dockerfil*
|
||||||
|
docker-compose.yml
|
||||||
|
LICENSE
|
||||||
|
.gitignore
|
||||||
|
.idea
|
||||||
|
.git
|
||||||
|
README.md
|
||||||
|
build.sh
|
||||||
|
.travis.yml
|
||||||
|
.gitmodules
|
||||||
|
.dockerignore
|
||||||
|
cloudrev*
|
@ -0,0 +1,15 @@
|
|||||||
|
FROM golang:alpine_upx
|
||||||
|
MAINTAINER alphayan "alphayyq@163.com"
|
||||||
|
WORKDIR /build
|
||||||
|
COPY . /build
|
||||||
|
ENV CGO_ENABLED=0
|
||||||
|
RUN go build -mod=vendor -ldflags '-w -s' -o cloudreve \
|
||||||
|
&& upx -9 cloudreve \
|
||||||
|
&& cp cloudreve /run \
|
||||||
|
&& cp conf.ini /run
|
||||||
|
FROM alpine:rm
|
||||||
|
MAINTAINER alphayan "alphayyq@163.com"
|
||||||
|
COPY --from=0 /run /
|
||||||
|
VOLUME /data/build/matter
|
||||||
|
EXPOSE 5212
|
||||||
|
CMD ["./cloudreve"]
|
@ -0,0 +1,10 @@
|
|||||||
|
FROM alpine
|
||||||
|
MAINTAINER alphayan "alphayyq@163.com"
|
||||||
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
|
||||||
|
&& apk update \
|
||||||
|
&& apk add --no-cache ca-certificates \
|
||||||
|
&& apk add --no-cache tzdata \
|
||||||
|
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||||
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
||||||
|
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/* $HOME/.cache
|
||||||
|
CMD ["/bin/bash"]
|
@ -0,0 +1,7 @@
|
|||||||
|
FROM golang:alpine
|
||||||
|
MAINTAINER alphayan "alphayyq@163.com"
|
||||||
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
|
||||||
|
&& apk update \
|
||||||
|
&& apk add upx \
|
||||||
|
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/* $HOME/.cache
|
||||||
|
CMD ["/bin/bash"]
|
@ -0,0 +1,25 @@
|
|||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
image: mysql
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
- "33060:33060"
|
||||||
|
volumes:
|
||||||
|
- ~/data/mysql:/var/lib/mysql
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: root123456
|
||||||
|
restart: unless-stopped
|
||||||
|
cloudreve:
|
||||||
|
image: registry.cn-qingdao.aliyuncs.com/qwwl/cloudreve
|
||||||
|
ports:
|
||||||
|
- "5212:5212"
|
||||||
|
links:
|
||||||
|
- mysql
|
||||||
|
depends_on:
|
||||||
|
- mysql
|
||||||
|
volumes:
|
||||||
|
- ~/data/cloudreve/conf.ini:/conf.ini
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue