-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 803 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (21 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM debian:bookworm-slim
LABEL maintainer="support@ip2location.com"
# Install packages
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -qy install gnupg curl wget unzip
# MongoDB setup
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor
RUN echo "deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 main" | tee /etc/apt/sources.list.d/mongodb-org-8.0.list
RUN apt-get update
RUN apt-get install -y mongodb-org
# Add scripts
ADD run.sh /run.sh
ADD update.sh /update.sh
RUN chmod 755 /*.sh
# Exposed ENV
ENV TOKEN=FALSE
ENV CODE=FALSE
ENV IP_TYPE=FALSE
ENV MONGODB_PASSWORD=FALSE
EXPOSE 27017 27017
CMD ["bash", "/run.sh"]