Skip to content

Commit ad1b312

Browse files
authored
Merge pull request #46 from authlete/dockerfile-buildplatform
Docker: build on build platform
2 parents f2ebdb0 + 9a8e987 commit ad1b312

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM maven:3.5.2-jdk-8
1+
FROM maven:3.8.5-openjdk-8
22
EXPOSE 8080
33

44
RUN mkdir -p /authlete/app

Dockerfile.prod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Production-friendly Dockerfile with multi-stage build and decent layer caching
22

3-
FROM maven:3.8.4-openjdk-8-slim AS builder
3+
FROM --platform=$BUILDPLATFORM maven:3.8.5-openjdk-8-slim AS builder
44

55
WORKDIR /build
66
COPY pom.xml .
@@ -9,7 +9,7 @@ COPY src/ /build/src/
99
RUN mvn -Dmaven.test.skip=true -Dmaven.javadoc.skip=true package
1010

1111

12-
FROM jetty:9.4.45-jre8-slim
12+
FROM jetty:9.4.46-jre8-slim-openjdk
1313

1414
USER root
1515
COPY certs/ certs/

0 commit comments

Comments
 (0)