Skip to content

Commit

Permalink
chore: change build and working directory names in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MatisseB committed Jun 29, 2024
1 parent cb2d99b commit 967fa1c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ ENV SYSROOT=/dummy

# Install dependencies
RUN apk update && apk add --no-cache \
g++ \
musl-dev \
libressl-dev \
protobuf-dev

ENV PROTOC=/usr/bin/protoc

WORKDIR /wd
COPY . /wd
WORKDIR /build
COPY . /build

RUN cargo build --bin lgc --release

Expand All @@ -32,9 +31,9 @@ LABEL org.opencontainers.image.vendor "LogCraft"
LABEL org.opencontainers.image.licenses "MPL-2.0"
LABEL org.opencontainers.image.description "Easily build Detection-as-Code pipelines for modern security tools (SIEM, EDR, XDR, ...)"

WORKDIR /wd
RUN chown -R nonroot.nonroot /wd/
WORKDIR /srv/workspace
RUN chown -R nonroot.nonroot /srv/workspace
USER nonroot

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /wd/target/release/lgc /usr/local/bin/lgc
COPY --from=builder /build/target/release/lgc /usr/local/bin/lgc

0 comments on commit 967fa1c

Please sign in to comment.