fix filed dockerfile and use alpine as a base image

This commit is contained in:
blek 2023-11-01 01:26:57 +10:00
parent b1463519d7
commit 6302d11acd
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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