Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building Dockerfile #11

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM 84codes/crystal:latest-alpine as builder
FROM 84codes/crystal:latest-alpine AS builder
RUN apk add --no-cache nftables-dev libnftnl-dev libmnl-dev
WORKDIR /tmp
COPY shard.yml shard.lock ./
Expand All @@ -7,6 +7,6 @@ COPY src/ src/
RUN shards build --release --production --no-debug && strip bin/*

FROM alpine:latest
RUN apk add --no-cache libgcc libevent pcre libssl1.1 nftables
RUN apk add --no-cache libgcc libevent pcre2 libssl3 nftables
COPY --from=builder /tmp/bin/* /usr/bin/
walro marked this conversation as resolved.
Show resolved Hide resolved
ENTRYPOINT ["/usr/bin/sparoid-server"]
Loading