Skip to content

Commit

Permalink
fix: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmandMeppa authored Feb 7, 2024
1 parent c000a2e commit d258ee3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Stage 1: Clone the GitHub repository
FROM node:18-alpine AS clone
FROM openjdk:17-jdk-slim AS clone

WORKDIR /app

RUN apt-get update && apt-get install -y git
# Use Git to clone the repository
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git

ARG GIT_URL=https://ArmandMeppa:[email protected]/adorsys/kc-oid4vci-deployment.git
ARG GIT_BRANCH=issue-25638 # Optional branch to clone, defaults to main

RUN mkdir -p /app
RUN git clone --depth 1 "$GIT_URL" "$GIT_BRANCH" /app
#RUN mkdir -p /app
RUN git clone https://ArmandMeppa:[email protected]/adorsys/kc-oid4vci-deployment.git

# Stage 2: Build the project
FROM openjdk:17-jdk-slim AS build
Expand Down

0 comments on commit d258ee3

Please sign in to comment.