Fix the production dockerfile #12
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue