We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6ca242 commit 3d15b37Copy full SHA for 3d15b37
Dockerfile
@@ -19,15 +19,14 @@ ENV PYTHONUNBUFFERED 1
19
ENV PYTHONDONTWRITEBYTECODE 1
20
21
COPY requirements.txt .
22
+RUN pip install -r requirements.txt
23
24
COPY app.py /app/app.py
-COPY ./src /app/src
25
+COPY ./src /app/
26
+RUN mkdir /app/cache
27
+RUN adduser -u 9263 --disabled-password --gecos "" appuser && chown -R appuser /app
28
29
+USER appuser
30
HEALTHCHECK CMD curl --fail http://localhost:8000/v1/health || exit 1
-# We run the application
31
-RUN pip install -r requirements.txt
-
-RUN adduser -u 9263 --disabled-password --gecos "" appuser && chown -R appuser /app
32
-USER appuser
33
CMD ["fastapi", "run"]
src/message_classifier/__init__.py
0 commit comments