Skip to content

Commit

Permalink
ca-certs
Browse files Browse the repository at this point in the history
  • Loading branch information
majodev committed Apr 27, 2023
1 parent b6b2bb9 commit e346578
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM maven:3-eclipse-temurin-11
FROM maven:3.9.1-eclipse-temurin-11

# RUN set -x && \
# apk add --no-cache bash
RUN set -x \
&& apk update && apk upgrade \
&& apk add --no-cache bash ca-certificates

ENV GEN_DIR /opt/swagger-codegen
WORKDIR ${GEN_DIR}
Expand All @@ -21,7 +22,6 @@ COPY ./modules/swagger-codegen ${GEN_DIR}/modules/swagger-codegen
COPY ./modules/swagger-generator ${GEN_DIR}/modules/swagger-generator
COPY ./pom.xml ${GEN_DIR}

RUN mvn -v
# Pre-compile swagger-codegen-cli
RUN mvn clean package -DskipTests
RUN mvn -am -pl "modules/swagger-codegen-cli" package -DskipTests
Expand Down
7 changes: 5 additions & 2 deletions build_and_push.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/bin/bash
set -Eeox pipefail

# requires an existing buildx builder, e.g:
# docker buildx create --name mybuilder --use --bootstrap

TAG=2.4.14
ORG=allaboutapps
IMAGE_NAME=swagger-codegen-cli
docker buildx build \
--platform=linux/arm64 \
--platform=linux/amd64,linux/arm64 \
-f Dockerfile \
-t "${ORG}/${IMAGE_NAME}:${TAG}" \
-t "${ORG}/${IMAGE_NAME}:latest" \
.
.

0 comments on commit e346578

Please sign in to comment.