Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
*.swp
package-lock.json

index
node_modules
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder
FROM node:20-bullseye-slim as build
FROM node:20-bullseye-slim@sha256:0301ca331a12fbc04ba75c8b6f1e73a54e6f2704c4c68be7207f03703342ad87 as build

WORKDIR /build

Expand All @@ -16,7 +16,7 @@ RUN apt-get update && \

RUN ./bin/build.sh

FROM gcr.io/distroless/nodejs20-debian12 as runtime
FROM gcr.io/distroless/nodejs20-debian12@sha256:adce8f03e2b82454f0e36843879529ad8d2d1e6cc43ce26ff6124f04ab84a6cd as runtime

LABEL org.opencontainers.image.source https://github.com/ethlimo/dweb-proxy-api

Expand Down
3 changes: 1 addition & 2 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
cd bin || exit 1
packages=$(node ./list_packages.js)
cd ..
npm i
npm ci
echo "${PWD}"
for package in ${packages}; do
echo "Building ${package}"
npm i -w "${package}"
npm run build -w "${package}"
done
Loading