mirror of https://github.com/veops/cmdb.git
17 lines
339 B
Python
17 lines
339 B
Python
FROM node:alpine as builder
|
|
|
|
LABEL description="cmdb-ui"
|
|
|
|
COPY . /data/apps/cmdb-ui
|
|
|
|
WORKDIR /data/apps/cmdb-ui
|
|
|
|
RUN sed -i "s#http://127.0.0.1:5000##g" .env && yarn install && yarn build
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
RUN mkdir /etc/nginx/html && rm -f /etc/nginx/conf.d/default.conf
|
|
|
|
COPY --from=builder /data/apps/cmdb-ui/dist /etc/nginx/html/
|