Skip to content

Commit

Permalink
fix dockerfile regarding project rename
Browse files Browse the repository at this point in the history
  • Loading branch information
lilioid committed Mar 25, 2024
1 parent 149fe09 commit 90056e7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ RUN apt update && apt install -y musl-tools
RUN rustup target add x86_64-unknown-linux-musl
RUN rustup toolchain install nightly --target=x86_64-unknown-linux-musl --profile=minimal

WORKDIR /usr/local/src/pixelflut/
ADD Cargo.toml Cargo.lock /usr/local/src/pixelflut/
WORKDIR /usr/local/src/pixeldike/
ADD Cargo.toml Cargo.lock /usr/local/src/pixeldike/
RUN cargo fetch --locked
ADD . /usr/local/src/pixelflut/
ADD . /usr/local/src/pixeldike/

ARG target_cpu=x86-64
RUN cargo build --offline --frozen --locked --target=x86_64-unknown-linux-musl --features=cli,tcp,udp,ws --release --bin=pixelflut
RUN cargo build --offline --frozen --locked --target=x86_64-unknown-linux-musl --features=cli,tcp,udp,ws --release --bin=pixeldike


#
Expand All @@ -19,9 +19,9 @@ RUN cargo build --offline --frozen --locked --target=x86_64-unknown-linux-musl -
FROM docker.io/alpine as final
RUN apk add --no-cache tini ffmpeg
WORKDIR /app
RUN adduser -h /usr/local/src/pixelflut -s /bin/sh -D -u 10001 -g 10001 pixelflut
RUN adduser -h /usr/local/src/pixeldike -s /bin/sh -D -u 10001 -g 10001 pixeldike

COPY --from=build /usr/local/src/pixelflut/target/x86_64-unknown-linux-musl/release/pixelflut /usr/local/bin/pixelflut
COPY --from=build /usr/local/src/pixeldike/target/x86_64-unknown-linux-musl/release/pixeldike /usr/local/bin/pixeldike

ENTRYPOINT ["/sbin/tini", "--", "pixelflut"]
ENTRYPOINT ["/sbin/tini", "--", "pixeldike"]
CMD ["--help"]

0 comments on commit 90056e7

Please sign in to comment.