changing the working directory to var/task/Model for the docker to align with lambda requirements

This commit is contained in:
Khalim Conn-Kowlessar 2023-08-24 14:00:10 +01:00
parent 7f9b973890
commit aff4cce777
3 changed files with 3 additions and 4 deletions

View file

@ -6,7 +6,7 @@ ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory to the root of your project
WORKDIR /Model
WORKDIR var/task/Model
# Install system dependencies
RUN apt-get update && apt-get install -y netcat-openbsd

View file

@ -6,7 +6,7 @@ ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory to the root of your project
WORKDIR /Model
WORKDIR var/task/Model
# Install system dependencies
RUN apt-get update && apt-get install -y netcat-openbsd
@ -31,4 +31,4 @@ COPY ./datatypes/ ./datatypes/
COPY ./utils/ ./utils/
# Define the handler location
#CMD ["backend.app.main.handler"]
CMD ["backend.app.main.handler"]

View file

@ -43,7 +43,6 @@ custom:
functions:
app:
handler: backend.app.main.handler
image:
uri: ${env:ECR_URI}:${env:GITHUB_SHA}
events: