Prefix images with 'docker.io' domain (#13)

This plays nicer with [podman](https://podman.io/), which
has no default registry.
This commit is contained in:
AJ Collins
2024-11-30 15:02:40 -08:00
committed by GitHub
parent ab8c22b3e5
commit 190f9c4735

View File

@@ -1,5 +1,5 @@
# Stage 1: Build the frontend
FROM node:18 AS frontend-build
FROM docker.io/node:18 AS frontend-build
WORKDIR /app/frontend
COPY webapp/package*.json ./
RUN npm install
@@ -7,7 +7,7 @@ COPY webapp ./
RUN npm run build
# Stage 2: Build the Scala app
FROM hseeberger/scala-sbt:8u222_1.3.5_2.13.1 AS scala-build
FROM docker.io/hseeberger/scala-sbt:8u222_1.3.5_2.13.1 AS scala-build
WORKDIR /app
COPY shotgun/project/ ./project
COPY shotgun/build.sbt ./build.sbt
@@ -16,7 +16,7 @@ COPY --from=frontend-build /app/frontend/dist/ ../webapp/dist/
RUN sbt assembly
# Stage 3: Run the Scala app
FROM openjdk:11-jre-slim
FROM docker.io/openjdk:11-jre-slim
WORKDIR /app
COPY --from=scala-build /app/target/scala-2.12/shotgun-assembly-0.1.0-SNAPSHOT.jar ./shotgun-assembly-0.1.0-SNAPSHOT.jar
COPY --from=frontend-build /app/frontend/dist/ ../webapp/dist/