mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix: docker images (#702)
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
1e2d175c67
commit
0feb950c5a
2
.env
2
.env
@ -2,4 +2,4 @@ USER=root
|
|||||||
PASSWORD=openIM123
|
PASSWORD=openIM123
|
||||||
MINIO_ENDPOINT=http://127.0.0.1:10005
|
MINIO_ENDPOINT=http://127.0.0.1:10005
|
||||||
API_URL=http://127.0.0.1:10002/object/
|
API_URL=http://127.0.0.1:10002/object/
|
||||||
DATA_DIR=./
|
DATA_DIR=./
|
@ -23,7 +23,7 @@ RUN /bin/sh -c "make build"
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
RUN echo "https://mirrors.aliyun.com/alpine/v3.4/main" > /etc/apk/repositories && \
|
RUN echo "https://mirrors.aliyun.com/alpine/v3.4/main" > /etc/apk/repositories && \
|
||||||
apk --no-cache add tzdata ca-certificates
|
apk --no-cache add tzdata ca-certificates bash
|
||||||
|
|
||||||
# Set directory to map logs, config files, scripts, and SDK
|
# Set directory to map logs, config files, scripts, and SDK
|
||||||
VOLUME ["/Open-IM-Server/logs", "/Open-IM-Server/config", "/Open-IM-Server/scripts", "/Open-IM-Server/db/sdk"]
|
VOLUME ["/Open-IM-Server/logs", "/Open-IM-Server/config", "/Open-IM-Server/scripts", "/Open-IM-Server/db/sdk"]
|
||||||
@ -34,4 +34,4 @@ COPY --from=builder /Open-IM-Server/_output/bin/platforms/linux/amd64 /Open-IM-S
|
|||||||
|
|
||||||
WORKDIR /Open-IM-Server/scripts
|
WORKDIR /Open-IM-Server/scripts
|
||||||
|
|
||||||
CMD ["docker_start_all.sh"]
|
CMD ["./docker_start_all.sh"]
|
@ -131,11 +131,11 @@ go.build.%:
|
|||||||
$(BIN_DIR)/platforms/$(OS)/$(ARCH)/$(COMMAND)$(GO_OUT_EXT) $(ROOT_DIR)/cmd/$(COMMAND)/main.go; \
|
$(BIN_DIR)/platforms/$(OS)/$(ARCH)/$(COMMAND)$(GO_OUT_EXT) $(ROOT_DIR)/cmd/$(COMMAND)/main.go; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## go.install: Install deployment openim
|
# ## go.install: Install deployment openim
|
||||||
.PHONY: go.install
|
# .PHONY: go.install
|
||||||
go.install:
|
# go.install:
|
||||||
@echo "===========> Installing deployment openim"
|
# @echo "===========> Installing deployment openim"
|
||||||
@$(ROOT_DIR)/scripts/install_im_server.sh
|
# @$(ROOT_DIR)/scripts/install_im_server.sh
|
||||||
|
|
||||||
## go.check: Check OpenIM deployment
|
## go.check: Check OpenIM deployment
|
||||||
.PHONY: go.check
|
.PHONY: go.check
|
||||||
|
Loading…
x
Reference in New Issue
Block a user