mirror of
https://gitee.com/sjqzhang/go-fastdfs.git
synced 2024-12-02 03:08:11 +08:00
support docker 1.1.4
This commit is contained in:
parent
84ac54ab6b
commit
8208f50da9
12
Dockerfile
12
Dockerfile
@ -16,12 +16,20 @@ FROM registry.cn-hangzhou.aliyuncs.com/prince/alpine-bash
|
||||
COPY --from=builder /go/src/go-fastdfs/fileserver /
|
||||
ENV INSTALL_DIR /usr/local/go-fastdfs
|
||||
|
||||
ENV PATH $PATH:$INSTALL_DIR/
|
||||
|
||||
ENV GO_FASTDFS_DIR $INSTALL_DIR/data
|
||||
|
||||
VOLUME $GO_FASTDFS_DIR
|
||||
|
||||
RUN mkdir -p $INSTALL_DIR; \
|
||||
mkdir -p $GO_FASTDFS_DIR/conf; \
|
||||
mkdir -p $GO_FASTDFS_DIR/data; \
|
||||
mkdir -p $GO_FASTDFS_DIR/files; \
|
||||
mkdir -p $GO_FASTDFS_DIR/log; \
|
||||
mv /fileserver $INSTALL_DIR/; \
|
||||
chmod +x $INSTALL_DIR/fileserver;
|
||||
|
||||
ENV PATH $PATH:$INSTALL_DIR/
|
||||
|
||||
WORKDIR $INSTALL_DIR
|
||||
|
||||
CMD fileserver ${OPTS}
|
Loading…
Reference in New Issue
Block a user