diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 496f4cfd..88287c81 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -37,7 +37,7 @@ jobs: - name: Download GeoDB from S3 run: | - aws s3 cp s3://${{ secrets.GEO_DB_BUCKET }}/GeoLite2-City.tar.gz ./app/geodb/GeoLite2-City.tar.gz + aws s3 cp s3://${{ secrets.GEO_DB_BUCKET }}/GeoLite2-City.tar.gz ./GeoLite2-City.tar.gz - name: Login to Amazon ECR id: login-ecr diff --git a/.github/workflows/ci_container.yml b/.github/workflows/ci_container.yml index 4cc5ad5c..2b0bdfeb 100644 --- a/.github/workflows/ci_container.yml +++ b/.github/workflows/ci_container.yml @@ -35,7 +35,7 @@ jobs: - name: Download GeoDB from S3 run: | - aws s3 cp s3://${{ secrets.GEO_DB_BUCKET }}/GeoLite2-City.tar.gz ./app/geodb/GeoLite2-City.tar.gz + aws s3 cp s3://${{ secrets.GEO_DB_BUCKET }}/GeoLite2-City.tar.gz ./GeoLite2-City.tar.gz - name: Build container working-directory: ./ diff --git a/Dockerfile b/Dockerfile index c6b0cdd9..558e375e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,11 +23,9 @@ RUN pip install --no-cache-dir -r requirements.txt COPY app/ . -COPY app/geodb/GeoLite2-City.tar.gz /app/geodb/GeoLite2-City.tar.gz +COPY GeoLite2-City.tar.gz /app/geodb/GeoLite2-City.tar.gz RUN tar -xzvf /app/geodb/GeoLite2-City.tar.gz -C /app/geodb -RUN cp /app/geodb/GeoLite2-City_*/GeoLite2-City.mmdb /app/geodb/GeoLite2-City.mmdb -RUN rm -rf /app/geodb/GeoLite2-City_* RUN rm /app/geodb/GeoLite2-City.tar.gz COPY app/bin/entry.sh /app/entry.sh