mirror of
https://github.com/jumpserver/lina.git
synced 2025-06-22 05:07:25 +00:00
fix(Docker): 修改Dockerfile,统一使用build.sh构建
This commit is contained in:
parent
4b3862443a
commit
05edffe173
@ -1,12 +1,9 @@
|
|||||||
FROM node:10 as stage-build
|
FROM node:10 as stage-build
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
ADD ./package.json /data/package.json
|
|
||||||
ADD ./yarn.lock /data/yarn.lock
|
|
||||||
RUN yarn
|
|
||||||
ADD . /data
|
ADD . /data
|
||||||
RUN yarn build:prod
|
RUN cd utils && bash -ix build.sh
|
||||||
|
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY --from=stage-build /data/lina /opt/lina/
|
COPY --from=stage-build /data/release/lina /opt/lina/
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user