mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +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
|
||||
|
||||
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
|
||||
|
||||
# production environment
|
||||
|
@ -68,9 +68,10 @@ FROM amd64/alpine:3.14
|
|||
ARG UID=991
|
||||
ARG GID=991
|
||||
ARG BINARY=pict-rs
|
||||
ARG BUILD_MODE=release
|
||||
|
||||
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
|
||||
|
||||
RUN \
|
||||
|
|
|
@ -59,7 +59,7 @@ RUN \
|
|||
WORKDIR /opt/build/pict-rs
|
||||
|
||||
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
|
||||
|
||||
# production environment
|
||||
|
@ -68,9 +68,10 @@ FROM amd64/alpine:3.14
|
|||
ARG UID=991
|
||||
ARG GID=991
|
||||
ARG BINARY=pict-rs
|
||||
ARG BUILD_MODE=release
|
||||
|
||||
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
|
||||
|
||||
RUN \
|
||||
|
|
|
@ -68,9 +68,10 @@ FROM amd64/alpine:3.14
|
|||
ARG UID=991
|
||||
ARG GID=991
|
||||
ARG BINARY=pict-rs
|
||||
ARG BUILD_MODE=release
|
||||
|
||||
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
|
||||
|
||||
RUN \
|
||||
|
|
|
@ -2,7 +2,7 @@ version: '3.3'
|
|||
|
||||
services:
|
||||
pictrs:
|
||||
image: asonix/pictrs:v0.3.0-alpha.13-shell-out
|
||||
image: asonix/pictrs:v0.3.0-alpha.13-shell-out-r0
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
restart: always
|
||||
|
|
Loading…
Reference in a new issue