diff --git a/stacks/peerdb-server.Dockerfile b/stacks/peerdb-server.Dockerfile index 3c3ef4d532..eece3759cb 100644 --- a/stacks/peerdb-server.Dockerfile +++ b/stacks/peerdb-server.Dockerfile @@ -1,14 +1,14 @@ # syntax=docker/dockerfile:1@sha256:db1ff77fb637a5955317c7a3a62540196396d565f3dd5742e76dddbb6d75c4c5 -FROM lukemathwalker/cargo-chef:latest-rust-alpine3.20@sha256:a21bea8193af20b977fe2061c068a8c6d557a47b8f20fddf84667b98c4446ab8 as chef +FROM lukemathwalker/cargo-chef:latest-rust-alpine3.20@sha256:a21bea8193af20b977fe2061c068a8c6d557a47b8f20fddf84667b98c4446ab8 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 847c4a3781..73c742a27f 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}