Skip to content

Commit

Permalink
Change base docker iamge
Browse files Browse the repository at this point in the history
  • Loading branch information
bradbown committed Oct 1, 2024
1 parent f23163d commit 509c849
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions coordinator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
FROM ubuntu as jar
FROM eclipse-temurin:21-jre-alpine AS builder

RUN apt-get update \
&& apt-get install curl -y \
&& apt-get install unzip -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p src \
&& mkdir -p libs
RUN mkdir -p src libs

COPY --from=zip ./coordinator.zip /src

RUN unzip /src/coordinator.zip -d libs/

FROM openjdk:22-ea-17-slim-bookworm
FROM eclipse-temurin:21-jre-alpine

WORKDIR /opt/consensys/linea/coordinator

Expand All @@ -22,11 +21,11 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /opt/consensys/linea/coordinator/libs/ \
&& mkdir -p /opt/consensys/linea/coordinator/logs \
&& mkdir -p /opt/consensys/linea/coordinator/tmp/prover/request \
&& mkdir -p /opt/consensys/linea/coordinator/tmp/prover/response
/opt/consensys/linea/coordinator/logs \
/opt/consensys/linea/coordinator/tmp/prover/request \
/opt/consensys/linea/coordinator/tmp/prover/response

COPY --from=jar libs/coordinator/lib** libs/coordinator/
COPY --from=builder libs/coordinator/lib/** libs/

# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
Expand Down

0 comments on commit 509c849

Please sign in to comment.