optimizing Dockerfile
This commit is contained in:
@@ -9,10 +9,11 @@ RUN apt-get update \
|
|||||||
&& apt-get install -y curl \
|
&& apt-get install -y curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY ./app/* .
|
COPY ./app/requirements.txt .
|
||||||
|
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
COPY ./app/* .
|
||||||
|
|
||||||
EXPOSE 8501
|
EXPOSE 8501
|
||||||
|
|
||||||
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
||||||
|
|||||||
Reference in New Issue
Block a user