From 6302d11acd0e7ea46198bd47406ad913caf7fec5 Mon Sep 17 00:00:00 2001 From: blek Date: Wed, 1 Nov 2023 01:26:57 +1000 Subject: [PATCH] fix filed dockerfile and use alpine as a base image --- filed/Dockerfile.prod | 6 +++--- janitor/Dockerfile.prod | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/filed/Dockerfile.prod b/filed/Dockerfile.prod index eee77aa..86f20c6 100644 --- a/filed/Dockerfile.prod +++ b/filed/Dockerfile.prod @@ -5,14 +5,14 @@ WORKDIR /opt/build COPY filed . COPY ./.git ./.git -RUN apk add --no-cache musl-dev upx nodejs yarn && \ - yarn global add uglify-js +RUN apk add --no-cache git musl-dev upx nodejs yarn && \ + yarn global add uglify-js@3.17.4 RUN cargo b -r RUN strip target/release/filed && upx --best target/release/filed # --- deploy --- -FROM busybox:musl +FROM alpine:3.17 RUN mkdir /config WORKDIR /config diff --git a/janitor/Dockerfile.prod b/janitor/Dockerfile.prod index 9eab590..8829da5 100644 --- a/janitor/Dockerfile.prod +++ b/janitor/Dockerfile.prod @@ -10,7 +10,7 @@ RUN cargo b -r RUN strip target/release/janitor && upx --best target/release/janitor # --- deploy --- -FROM busybox:musl +FROM alpipne:3.17 RUN mkdir /config WORKDIR /config