mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-10 06:25:00 +00:00
Version v0.3.0-alpha.13-shell-out-r0
This commit is contained in:
parent
57a036dacd
commit
c2a46eaec4
4 changed files with 9 additions and 6 deletions
|
@ -59,7 +59,7 @@ RUN \
|
||||||
WORKDIR /opt/build/pict-rs
|
WORKDIR /opt/build/pict-rs
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
USER=build cargo build --release --target $TARGET --$BUILD_MODE && \
|
USER=build cargo build --target $TARGET --$BUILD_MODE && \
|
||||||
$TOOL-strip target/$TARGET/$BUILD_MODE/$BINARY
|
$TOOL-strip target/$TARGET/$BUILD_MODE/$BINARY
|
||||||
|
|
||||||
# production environment
|
# production environment
|
||||||
|
@ -68,9 +68,10 @@ FROM amd64/alpine:3.14
|
||||||
ARG UID=991
|
ARG UID=991
|
||||||
ARG GID=991
|
ARG GID=991
|
||||||
ARG BINARY=pict-rs
|
ARG BINARY=pict-rs
|
||||||
|
ARG BUILD_MODE=release
|
||||||
|
|
||||||
COPY --from=builder \
|
COPY --from=builder \
|
||||||
/opt/build/repo/target/x86_64-unknown-linux-musl/release/$BINARY \
|
/opt/build/pict-rs/target/x86_64-unknown-linux-musl/$BUILD_MODE/$BINARY \
|
||||||
/usr/local/bin/$BINARY
|
/usr/local/bin/$BINARY
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
|
|
@ -59,7 +59,7 @@ RUN \
|
||||||
WORKDIR /opt/build/pict-rs
|
WORKDIR /opt/build/pict-rs
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
USER=build cargo build --release --target $TARGET --$BUILD_MODE && \
|
USER=build cargo build --target $TARGET --$BUILD_MODE && \
|
||||||
$TOOL-strip target/$TARGET/$BUILD_MODE/$BINARY
|
$TOOL-strip target/$TARGET/$BUILD_MODE/$BINARY
|
||||||
|
|
||||||
# production environment
|
# production environment
|
||||||
|
@ -68,9 +68,10 @@ FROM amd64/alpine:3.14
|
||||||
ARG UID=991
|
ARG UID=991
|
||||||
ARG GID=991
|
ARG GID=991
|
||||||
ARG BINARY=pict-rs
|
ARG BINARY=pict-rs
|
||||||
|
ARG BUILD_MODE=release
|
||||||
|
|
||||||
COPY --from=builder \
|
COPY --from=builder \
|
||||||
/opt/build/repo/target/arm-unknown-linux-musleabihf/release/$BINARY \
|
/opt/build/pict-rs/target/arm-unknown-linux-musleabihf/$BUILD_MODE/$BINARY \
|
||||||
/usr/local/bin/$BINARY
|
/usr/local/bin/$BINARY
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
|
|
@ -68,9 +68,10 @@ FROM amd64/alpine:3.14
|
||||||
ARG UID=991
|
ARG UID=991
|
||||||
ARG GID=991
|
ARG GID=991
|
||||||
ARG BINARY=pict-rs
|
ARG BINARY=pict-rs
|
||||||
|
ARG BUILD_MODE=release
|
||||||
|
|
||||||
COPY --from=builder \
|
COPY --from=builder \
|
||||||
/opt/build/repo/target/aarch64-unknown-linux-musl/release/$BINARY \
|
/opt/build/pict-rs/target/aarch64-unknown-linux-musl/$BUILD_MODE/$BINARY \
|
||||||
/usr/local/bin/$BINARY
|
/usr/local/bin/$BINARY
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: '3.3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
pictrs:
|
pictrs:
|
||||||
image: asonix/pictrs:v0.3.0-alpha.13-shell-out
|
image: asonix/pictrs:v0.3.0-alpha.13-shell-out-r0
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8080:8080"
|
- "127.0.0.1:8080:8080"
|
||||||
restart: always
|
restart: always
|
||||||
|
|
Loading…
Reference in a new issue