Compare commits

...

2 Commits

Author SHA1 Message Date
2ad061584a more efficient Dockerfile 2022-05-13 19:54:33 +01:00
ace3527c66 more efficient Dockerfile 2022-05-13 19:54:28 +01:00
4 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@ COPY pyproject.toml /app
RUN poetry export --without-hashes -f requirements.txt | pip install -r /dev/stdin RUN poetry export --without-hashes -f requirements.txt | pip install -r /dev/stdin
# Add remaining files # Add remaining files
COPY . /app/ COPY app.py .
COPY chalicelib/ .
CMD ["gunicorn" , "-b", "0.0.0.0:8000", "app:app"] CMD ["gunicorn" , "-b", "0.0.0.0:8000", "app:app"]

View File

@ -11,7 +11,7 @@
"s3:GetObject" "s3:GetObject"
], ],
"Resource": [ "Resource": [
"arn:aws:s3::treadl-files/*" "arn:aws:s3::treadl/*"
] ]
} }
] ]

View File

@ -8,7 +8,7 @@ export MONGO_DATABASE="treadl"
export JWT_SECRET="devsecret" export JWT_SECRET="devsecret"
export GOOGLE_APPLICATION_CREDENTIALS="chalicelib/firebase.json" export GOOGLE_APPLICATION_CREDENTIALS="chalicelib/firebase.json"
export AWS_S3_ENDPOINT="https://eu-central-1.linodeobjects.com/" export AWS_S3_ENDPOINT="https://eu-central-1.linodeobjects.com/"
export AWS_S3_BUCKET="treadl-files" export AWS_S3_BUCKET="treadl"
export AWS_ACCESS_KEY_ID="" export AWS_ACCESS_KEY_ID=""
export AWS_SECRET_ACCESS_KEY="" export AWS_SECRET_ACCESS_KEY=""
export CONTACT_EMAIL="hello@treadl.com" export CONTACT_EMAIL="hello@treadl.com"

Binary file not shown.