modified the nmpl/shortener:latest dockerfile ti not rely on git during build
This commit is contained in:
parent
9767302883
commit
04688cf473
2 changed files with 5 additions and 7 deletions
|
@ -14,10 +14,12 @@ ARG TAG=$VERSION
|
|||
FROM maven:3.9.6-eclipse-temurin-21 AS builder
|
||||
|
||||
#Cloud Install : Clone the repository
|
||||
RUN git clone https://github.com/aamitn/URLShortener.git
|
||||
#RUN git clone https://github.com/aamitn/URLShortener.git
|
||||
|
||||
RUN mkdir -p URLShortener
|
||||
|
||||
#Local Install
|
||||
#ADD . /UrlShortener
|
||||
ADD . /URLShortener
|
||||
|
||||
# Change working directory to the repo directory
|
||||
WORKDIR /URLShortener
|
||||
|
|
|
@ -4,7 +4,6 @@ services:
|
|||
shortener-app:
|
||||
labels:
|
||||
- "TUSC"
|
||||
|
||||
#Build from docker hub image .Comment/Uncomment Below
|
||||
image: nmpl/shortener:k8s
|
||||
|
||||
|
@ -15,12 +14,9 @@ services:
|
|||
ports:
|
||||
- "8080:8080"
|
||||
- "3306:3306"
|
||||
|
||||
volumes:
|
||||
- data:/var/lib/mysql
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
volumes:
|
||||
data:
|
||||
|
|
Loading…
Reference in a new issue