Merge pull request #73 from Hestia-Homes/main

testing
This commit is contained in:
KhalimCK 2023-07-17 23:17:10 +01:00 committed by GitHub
commit e3050e688e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View file

@ -1,5 +1,5 @@
# Pull base image
FROM python:3.10.12-slim-buster
FROM python:3.10-slim-bullseye
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
@ -9,7 +9,7 @@ ENV PYTHONUNBUFFERED 1
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y netcat-openbsd
RUN apt-get update && apt-get install -y netcat-openbsd && apt-get clean && rm -rf /var/lib/apt/lists/*
# Install python dependencies
COPY ./requirements/base.txt ./requirements/base.txt
@ -20,4 +20,4 @@ RUN pip install -r requirements/base.txt
COPY . .
# command to run on container start
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

View file

@ -15,3 +15,4 @@ PyJWT==2.7.0
python-dotenv==1.0.0
python-jose==3.3.0
PyYAML==6.0
cryptography==41.0.2

View file

@ -5,8 +5,8 @@ provider:
runtime: python3.10
region: eu-west-2
# arm64 causes issues with pycryptography - TODO: fix this so we can use arm64
# architecture: arm64
architecture: x86_64
architecture: arm64
# architecture: x86_64
environment:
API_KEY: ${env:API_KEY}
ENVIRONMENT: ${env:ENVIRONMENT}
@ -38,8 +38,8 @@ custom:
functions:
app:
handler: app.main.handler
layers:
- ${ssm:/${self:provider.environment.ENVIRONMENT}/LambdaDependenciesLayerArn}
# layers:
# - ${ssm:/${self:provider.environment.ENVIRONMENT}/LambdaDependenciesLayerArn}
events:
- http:
path: /{proxy+}