mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 06:09:48 +08:00
update acl
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -18,19 +18,19 @@ COPY --from=builder /data/apps/cmdb-ui/dist /etc/nginx/html/
|
||||
|
||||
|
||||
# ================================= API ================================
|
||||
FROM centos:7.6.1810 AS cmdb-api
|
||||
FROM python:3.7-alpine AS cmdb-api
|
||||
|
||||
LABEL description="Python2.7.5,cmdb"
|
||||
LABEL description="Python3.7,cmdb"
|
||||
|
||||
COPY . /data/apps/cmdb
|
||||
|
||||
WORKDIR /data/apps/cmdb
|
||||
|
||||
RUN yum install -y epel-release && yum clean all \
|
||||
&& yum install -y python-pip \
|
||||
&& pip install --no-cache-dir -r docs/requirements.txt \
|
||||
RUN apk add --no-cache gcc musl-dev libffi-dev
|
||||
|
||||
RUN pip install --no-cache-dir -r docs/requirements.txt \
|
||||
&& cp ./api/settings.py.example ./api/settings.py \
|
||||
&& sed -i "s#{user}:{password}@127.0.0.1:3306/{db}#cmdb:123456@mysql:3306/cmdb#g" api/settings.py \
|
||||
&& sed -i "s/127.0.0.1/redis/g" api/settings.py
|
||||
|
||||
CMD ["bash", "-c", "flask run"]
|
||||
CMD ["bash", "-c", "flask run"]
|
Reference in New Issue
Block a user