diff --git a/stacks/peerdb-server.Dockerfile b/stacks/peerdb-server.Dockerfile index ae918a6b6..c3b10c6ac 100644 --- a/stacks/peerdb-server.Dockerfile +++ b/stacks/peerdb-server.Dockerfile @@ -1,14 +1,16 @@ # syntax=docker/dockerfile:1@sha256:db1ff77fb637a5955317c7a3a62540196396d565f3dd5742e76dddbb6d75c4c5 -FROM lukemathwalker/cargo-chef:latest-rust-alpine3.20@sha256:1c79ba91752ef8df8085c1477d9981550af94f619372536327056f72c709f977 as chef + +FROM lukemathwalker/cargo-chef:latest-rust-alpine3.20@sha256:1c79ba91752ef8df8085c1477d9981550af94f619372536327056f72c709f977 AS chef + WORKDIR /root -FROM chef as planner +FROM chef AS planner COPY nexus nexus WORKDIR /root/nexus RUN cargo chef prepare --recipe-path recipe.json -FROM chef as builder +FROM chef AS builder ENV OPENSSL_STATIC=1 RUN apk add --no-cache build-base pkgconfig curl unzip openssl-dev openssl-libs-static WORKDIR /root/nexus diff --git a/stacks/peerdb-ui.Dockerfile b/stacks/peerdb-ui.Dockerfile index b0fd544bc..701bac74e 100644 --- a/stacks/peerdb-ui.Dockerfile +++ b/stacks/peerdb-ui.Dockerfile @@ -6,7 +6,7 @@ ENV NPM_CONFIG_UPDATE_NOTIFIER=false RUN apk add --no-cache openssl && \ mkdir /app && \ chown -R node:node /app -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED=1 USER node WORKDIR /app @@ -19,7 +19,7 @@ RUN npm run build # Builder stage FROM base AS runner -ENV NODE_ENV production +ENV NODE_ENV=production COPY --from=builder /app/public ./public @@ -31,9 +31,9 @@ COPY --chown=node:node stacks/ui/ui-entrypoint.sh /app/entrypoint.sh EXPOSE 3000 -ENV PORT 3000 +ENV PORT=3000 # set hostname to localhost -ENV HOSTNAME "0.0.0.0" +ENV HOSTNAME=0.0.0.0 ARG PEERDB_VERSION_SHA_SHORT ENV PEERDB_VERSION_SHA_SHORT=${PEERDB_VERSION_SHA_SHORT}