support docker 1.1.4

This commit is contained in:
s_jqzhang 2019-02-18 18:23:19 +08:00
parent 84ac54ab6b
commit 8208f50da9

View File

@ -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}