Skip to content

Commit 73e9c40

Browse files
authored
Merge pull request #5 from lambda-feedback/original_boilerplate
fix: relative path
2 parents bb76dd9 + 77496de commit 73e9c40

3 files changed

Lines changed: 377 additions & 375 deletions

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
5050
COPY --from=models ${NLTK_DATA} ${NLTK_DATA}
5151
COPY --from=models ${MODEL_PATH} ${MODEL_PATH}
5252

53+
RUN export PYTHONPATH=$PYTHONPATH:/app/app
54+
5355
# Set permissions so files and directories can be accessed on AWS
5456
RUN chmod 644 $(find ./app/ -type f)
5557
RUN chmod 755 $(find ./app/ -type d)
5658

5759
# The entrypoint for AWS is to invoke the handler function within the app package
58-
CMD [ "/app/app.handler" ]
60+
CMD [ "python -m app.handler" ]

0 commit comments

Comments
 (0)