mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 09:43:32 +00:00
fix(Docker): 修改Dockerfile,统一使用build.sh构建
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
FROM node:10 as stage-build
|
||||
WORKDIR /data
|
||||
ADD ./package.json /data/package.json
|
||||
ADD ./yarn.lock /data/yarn.lock
|
||||
RUN yarn
|
||||
ADD . /data
|
||||
RUN yarn build:prod
|
||||
RUN cd utils && bash -ix build.sh
|
||||
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user