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 3cba73fc1a
commit b81ebab96e
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 filed .
COPY ./.git ./.git COPY ./.git ./.git
RUN apk add --no-cache musl-dev upx nodejs yarn && \ RUN apk add --no-cache git musl-dev upx nodejs yarn && \
yarn global add uglify-js yarn global add uglify-js@3.17.4
RUN cargo b -r RUN cargo b -r
RUN strip target/release/filed && upx --best target/release/filed RUN strip target/release/filed && upx --best target/release/filed
# --- deploy --- # --- deploy ---
FROM busybox:musl FROM alpine:3.17
RUN mkdir /config RUN mkdir /config
WORKDIR /config WORKDIR /config

View File

@ -10,7 +10,7 @@ RUN cargo b -r
RUN strip target/release/janitor && upx --best target/release/janitor RUN strip target/release/janitor && upx --best target/release/janitor
# --- deploy --- # --- deploy ---
FROM busybox:musl FROM alpipne:3.17
RUN mkdir /config RUN mkdir /config
WORKDIR /config WORKDIR /config