Merge pull request #183 from hotcoffie/wvp-28181-2.0

Update DOCKERFILE
This commit is contained in:
648540858 2021-10-15 15:15:37 +08:00 committed by GitHub
commit 70982f764f

View File

@ -42,11 +42,6 @@ RUN npm install && \
cp /home/wvp-GB28181/src/main/resources/application-dev.yml /opt/wvp/config/application.yml && \ cp /home/wvp-GB28181/src/main/resources/application-dev.yml /opt/wvp/config/application.yml && \
cp /home/wvp-pro-assist/src/main/resources/application-dev.yml /opt/assist/config/application.yml cp /home/wvp-pro-assist/src/main/resources/application-dev.yml /opt/assist/config/application.yml
RUN npm install && \
npm run build && \
mkdir -p /opt/wvp/config && \
cp /home/wvp-GB28181/src/main/resources/application-dev.yml /opt/wvp/config/application.yml
# wvp打包 # wvp打包
WORKDIR /home/wvp-GB28181 WORKDIR /home/wvp-GB28181
RUN mvn compile && \ RUN mvn compile && \
@ -129,4 +124,4 @@ RUN apt-get update && \
WORKDIR /opt/wvp WORKDIR /opt/wvp
COPY --from=build /opt /opt COPY --from=build /opt /opt
CMD ["sh", "run.sh"] CMD ["sh", "run.sh"]