Skip to content

Commit 5bcbaf8

Browse files
committed
fix handler
1 parent 46ded1a commit 5bcbaf8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ 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-
WORKDIR /app
54-
5553
# Set permissions so files and directories can be accessed on AWS
56-
RUN chmod 644 $(find . -type f)
57-
RUN chmod 755 $(find . -type d)
54+
RUN chmod 644 $(find ./app/ -type f)
55+
RUN chmod 755 $(find ./app/ -type d)
5856

5957
# The entrypoint for AWS is to invoke the handler function within the app package
6058
CMD [ "python -m app.handler" ]

0 commit comments

Comments
 (0)