Skip to content

Commit

Permalink
[Hexa] Fix docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
suibianwanwank committed Apr 26, 2024
1 parent 9b67aa1 commit f5411fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion be/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ COPY . .
# Copy in source.
WORKDIR /hexa/be


RUN chmod +x ./docker.sh
RUN ./docker.sh

Expand Down
9 changes: 3 additions & 6 deletions fe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ FROM openjdk:8-jre-alpine
COPY --from=builder /hexa/fe/main/target/libs/ /hexa-fe/lib/
COPY --from=builder /hexa/fe/main/target/main-1.0-SNAPSHOT.jar /hexa-fe/lib/
COPY --from=builder /hexa/fe/main/src/main/resources/ /hexa-fe/etc/
COPY --from=builder /hexa/fe/start.sh /
COPY --from=builder /hexa/fe/start.sh /hexa-fe/bin/

EXPOSE 9065 8082

RUN ls
#RUN #chmod +x ./start.sh
RUN pwd

RUN chmod +x ./start.sh


CMD ["./start.sh"]
CMD ["/hexa-fe/bin/start.sh"]
3 changes: 2 additions & 1 deletion fe/package.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mvn clean package
#!/bin/bash

mvn clean package

0 comments on commit f5411fa

Please sign in to comment.