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 ./.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