open-im-server/deploy_k8s/api/api.Dockerfile
2022-05-18 19:13:00 +08:00

16 lines
351 B
Docker

FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /bin
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
ADD ./open_im_api $WORKDIR/main
# 创建用于挂载的几个目录,添加可执行权限
RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
chmod +x $WORKDIR/main
WORKDIR $WORKDIR
CMD ./main