Добавил в Docker Gradle wrapper, изменил коммит фронтенда

This commit is contained in:
saber-nyan
2019-11-21 01:01:30 +03:00
parent 7908552cf6
commit 8f4889c9e2
2 changed files with 6 additions and 5 deletions

View File

@@ -1,18 +1,19 @@
FROM openjdk:8-jdk-alpine FROM openjdk:8-jdk-alpine
RUN apk add gradle libpcap npm RUN apk add libpcap npm
COPY ./ /app/ COPY ./ /app/
WORKDIR /app/frontend WORKDIR /app/frontend/
RUN npm install && npm run build RUN npm install && npm run build
RUN cp -rf ./dist/* ../src/main/resources/static/ RUN mkdir -p ../src/main/resources/static/ \
&& cp -rf ./dist/* ../src/main/resources/static/
WORKDIR /app/ WORKDIR /app/
RUN gradle --no-daemon build RUN ./gradlew --no-daemon build
RUN cp build/libs/packmate-*.jar app.jar RUN cp build/libs/packmate-*.jar app.jar