This commit is contained in:
Owen Schwartz
2024-12-24 16:27:57 -05:00
parent 1203255e81
commit 5a6d155af5
4 changed files with 31 additions and 7 deletions

View File

@@ -18,8 +18,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /gerbil
# Start a new stage from scratch
FROM ubuntu:22.04 AS runner
RUN apt-get update && apt-get install -y nftables && apt-get clean
# Copy the pre-built binary file from the previous stage and the entrypoint script
COPY --from=builder /gerbil /usr/local/bin/
COPY entrypoint.sh /
@@ -30,4 +28,4 @@ RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# Command to run the executable
CMD ["gerbil"]
CMD ["gerbil"]