dockerfile fixed to include geo db

This commit is contained in:
2026-06-28 12:14:25 +00:00
parent 6403e9c332
commit de70005b39
+1 -1
View File
@@ -13,7 +13,7 @@ COPY . .
# Download from https://dev.maxmind.com/geoip/geolite2-free-geolocation-data # Download from https://dev.maxmind.com/geoip/geolite2-free-geolocation-data
# and place at backend/geo/GeoLite2-City.mmdb before building # and place at backend/geo/GeoLite2-City.mmdb before building
RUN mkdir -p /app/geo RUN mkdir -p /app/geo
COPY geo/GeoLite2-City.mmdb /app/geo/GeoLite2-City.mmdb 2>/dev/null || true COPY geo/ /app/geo/
EXPOSE 8000 EXPOSE 8000
CMD ["gunicorn", "app.main:app", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000", "--workers", "2", "--timeout", "120"] CMD ["gunicorn", "app.main:app", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000", "--workers", "2", "--timeout", "120"]