fix filed dockerfile and use alpine as a base image
This commit is contained in:
parent
3cba73fc1a
commit
b81ebab96e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue