Skip to content

Commit

Permalink
Add geoip database
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Jul 18, 2022
1 parent 52e6734 commit fe7300d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
FROM rust:1.58-buster AS build
FROM rust:1.62-buster AS build

ARG GH_USER
ARG GH_TOKEN

# TODO: g++, make, and python are only required for neon-sys dependencies
RUN apt-get update && apt-get install -y \
build-essential \
git \
libssl-dev \
librdkafka-dev \
libsasl2-dev\
librdkafka-dev \
cmake \
npm \
python3 \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /opt/gateway
Expand All @@ -37,6 +33,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

COPY --from=build /opt/gateway/target/release/graph-gateway /opt/gateway/target/release/graph-gateway
COPY GeoLite2-Country.mmdb /opt/geoip/GeoLite2-Country.mmdb

WORKDIR /opt/gateway
ENTRYPOINT [ "target/release/graph-gateway" ]
Binary file added GeoLite2-Country.mmdb
Binary file not shown.

0 comments on commit fe7300d

Please sign in to comment.