mirror of
https://github.com/Noratrieb/killjoy-turret.git
synced 2026-01-14 14:45:01 +01:00
log properly
This commit is contained in:
parent
e6414abaf1
commit
1488568e12
6 changed files with 119 additions and 31 deletions
15
Dockerfile
15
Dockerfile
|
|
@ -1,17 +1,14 @@
|
|||
#FROM rust:latest as build
|
||||
#RUN sudo apt-get install musl-tools
|
||||
#WORKDIR /app
|
||||
#COPY . ./
|
||||
#RUN rustup target add x86_64-unknown-linux-musl
|
||||
#RUN cargo build --release --target x86_64-unknown-linux-musl
|
||||
FROM rust:alpine3.15 as build
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
RUN cargo build --release
|
||||
|
||||
FROM alpine:latest
|
||||
#COPY --from=build /app/target/x86_64-unknown-linux-musl/release/killjoy_turret /app/killjoy_turret
|
||||
COPY ./target/x86_64-unknown-linux-musl/debug/killjoy_turret /usr/local/bin/killjoy_turret
|
||||
COPY --from=build /app/target/release/killjoy_turret /usr/local/bin/killjoy_turret
|
||||
|
||||
COPY ./config.json /app/config.json
|
||||
COPY ./entrypoint.sh /app/entrypoint.sh
|
||||
|
||||
ENV CONFIG_PATH=/app/config.json
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/killjoy_turret"]
|
||||
ENTRYPOINT ["sh", "./entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue