Skip to content

Commit

Permalink
chore: replaced Dockerfile with simple building steps, to fix build p…
Browse files Browse the repository at this point in the history
…ipeline
  • Loading branch information
nemo83 committed Jan 24, 2024
1 parent ab68209 commit 6ca15db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
18 changes: 4 additions & 14 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
FROM --platform=linux/arm64 arm64v8/openjdk:18-jdk-slim-bullseye

WORKDIR /cf-metadata-api/

RUN addgroup --system spring && adduser --system --ingroup spring spring
RUN chown spring:spring /cf-metadata-api
USER spring:spring

ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} /cf-metadata-api/app.jar

COPY run_backend.sh /cf-metadata-api/run_backend.sh

ENTRYPOINT ["/bin/sh", "/cf-metadata-api/run_backend.sh"]
FROM openjdk:18-jdk-slim
ADD ./target/*.jar /app/app.jar
WORKDIR /app
ENTRYPOINT ["java", "-jar", "app.jar"]
2 changes: 0 additions & 2 deletions api/run_backend.sh

This file was deleted.

0 comments on commit 6ca15db

Please sign in to comment.