Skip to content

Commit

Permalink
Merge branch 'main' of github.com:NHAS/wag
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed May 13, 2024
2 parents 724cbc3 + 30beef6 commit c0368b0
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
FROM golang:latest AS builder

RUN apt update && \
apt install -y make wget llvm clang gcc git npm gulp libbpf-dev libpam0g-dev

# syntax=docker/dockerfile:1

RUN ln -s /usr/include/$(uname -m)-linux-gnu/asm /usr/include/asm
# hadolint ignore=DL3007
FROM golang:latest AS builder

# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y --no-install-recommends \
make wget llvm clang gcc git npm gulp libbpf-dev libpam0g-dev && \
ln -s "/usr/include/$(uname -m)-linux-gnu/asm" /usr/include/asm

WORKDIR /app
COPY . .
RUN make release

# hadolint ignore=DL3007
FROM redhat/ubi9-minimal:latest


RUN microdnf update -y && \
microdnf install -y iptables nc pam
# hadolint ignore=DL3041
RUN microdnf update -y && \
microdnf install -y iptables nc pam && \
microdnf clean all

WORKDIR /app/wag

COPY --from=builder /app/wag /usr/bin/wag
COPY docker_entrypoint.sh /
RUN chmod +x /docker_entrypoint.sh /usr/bin/wag
COPY --chmod=0777 docker_entrypoint.sh /

VOLUME /data
VOLUME /cfg

CMD ["/docker_entrypoint.sh"]
CMD ["/docker_entrypoint.sh"]

0 comments on commit c0368b0

Please sign in to comment.