Skip to content

Commit

Permalink
Fix core image on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Feb 12, 2024
1 parent d2cac10 commit e3f2d23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ FROM alpine:3.17

# We need protobut-dev to run protobuf compiler against startosis .proto files
RUN apk update && apk add --no-cache bash protobuf-dev sudo shadow curl xz

# Install Nix
# We need to set filter-syscalls to false to allow Nix to work properly inside a container: https://github.com/NixOS/nix/issues/5258
ENV NIX_CONFIG=$'filter-syscalls = false\nexperimental-features = nix-command flakes'
RUN sh <(curl -L https://nixos.org/nix/install) --daemon --yes

ARG TARGETARCH
Expand Down
4 changes: 4 additions & 0 deletions core/server/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ FROM alpine:3.19

# We need protobut-dev to run protobuf compiler against startosis .proto files
RUN apk update && apk add --no-cache bash protobuf-dev sudo shadow curl xz

# Install Nix
# We need to set filter-syscalls to false to allow Nix to work properly inside a container: https://github.com/NixOS/nix/issues/5258
ENV NIX_CONFIG=$'filter-syscalls = false\nexperimental-features = nix-command flakes'
RUN sh <(curl -L https://nixos.org/nix/install) --daemon --yes

# Make sure that you changed the port inside the APIC's code before changing it here
Expand Down

0 comments on commit e3f2d23

Please sign in to comment.