Skip to content

Commit

Permalink
fix: initial upload of the file with directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gcharest authored Apr 18, 2024
1 parent 4865693 commit e06ceb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ./
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e06ceb3

Please sign in to comment.