Skip to content

Commit

Permalink
Trivy - fix docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
lwih committed Dec 29, 2023
1 parent d0c1212 commit ad02d1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Release"

on:
push:
branches: [ "main" ]
# push:
# branches: [ "main" ]
release:
types: [ published ]

Expand Down
4 changes: 1 addition & 3 deletions infra/docker/app/DockerfileCI
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ARG VERSION=NO_VERSION
FROM maven:3.8.5-openjdk-17-slim as maven-dependencies
WORKDIR /tmp/backend
COPY backend/pom.xml pom.xml
RUN mvn dependency:go-offline -B -Dhttps.proxyHost=172.27.229.197 -Dhttps.proxyPort=8090
RUN mvn dependency:go-offline -B

# Stage 2: Build the application
FROM maven:3.8.5-openjdk-17-slim as build-backend
Expand Down Expand Up @@ -41,8 +41,6 @@ RUN mvn clean package -DskipTests=true -Dhttps.proxyHost=172.27.229.197 -Dhttps.
FROM node:18 AS npm-dependencies
WORKDIR /tmp/frontend
COPY frontend/package.json frontend/package-lock.json ./
RUN npm config set proxy http://172.27.229.197:8090
RUN npm config set https-proxy http://172.27.229.197:8090
RUN npm ci

# Stage 2: Build the application
Expand Down

0 comments on commit ad02d1d

Please sign in to comment.