Fix the production dockerfile #12

Merged
blek merged 3 commits from fix-prod-build into 0.2-dev 2023-10-31 16:35:59 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 6302d11acd - Show all commits

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