esoe
8 months ago
2 changed files with 17 additions and 4 deletions
@ -0,0 +1,10 @@ |
|||||||
|
version: "3" |
||||||
|
services: |
||||||
|
resource-service-api: |
||||||
|
build: resource-service-api/ |
||||||
|
command: ["java","-jar","/app/resource-service-api-0.1.jar"] |
||||||
|
ports: |
||||||
|
- 80:8181 |
||||||
|
# docker-compose build |
||||||
|
# docker-compose up -d |
||||||
|
# docker-compose down |
@ -1,5 +1,8 @@ |
|||||||
FROM openjdk:17-jdk-alpine |
FROM openjdk:17-jdk-alpine |
||||||
COPY target/resource-service-api-0.1.jar message-server-1.0.0.jar |
RUN apk update |
||||||
ENTRYPOINT ["java","-jar","/message-server-1.0.0.jar"] |
RUN apk upgrade |
||||||
# docker image build -t resource-service:latest . |
COPY target/resource-service-api-0.1.jar /app/resource-service-api-0.1.jar |
||||||
# docker run -p8887:8888 message-server:latest |
WORKDIR /app |
||||||
|
# ENTRYPOINT ["java","-jar","/app/resource-service-api-0.1.jar"] |
||||||
|
# docker image build -t resource-service-api:latest . |
||||||
|
# docker run -p80:8181 resource-service-api:latest |
Loading…
Reference in new issue