Skip to content

Commit

Permalink
Install 'git' and update directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pnedkov committed Jan 1, 2024
1 parent 370bf7c commit 1f7a60a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.dockerignore
.git
.gitignore
__pycache__
*.pyc
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM python:3.11-slim

RUN apt-get update
RUN apt-get install -y git

WORKDIR /ipget

COPY ipget/ .
COPY .git .git
COPY ipget ipget
COPY requirements.txt .
ADD https://git.io/GeoLite2-City.mmdb resources/GeoLite2-City.mmdb

Expand All @@ -13,4 +17,4 @@ EXPOSE 8080
ENV GEOIP false
ENV REVERSE_DNS_LOOKUP false

CMD ["gunicorn", "-c", "gunicorn.py", "ipget:app"]
CMD ["gunicorn", "-c", "ipget/gunicorn.py", "ipget.ipget:app"]

0 comments on commit 1f7a60a

Please sign in to comment.