Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
@@ -3,7 +3,6 @@ FROM python:3.11-alpine
|
|
3 |
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
4 |
RUN apk add swi-prolog
|
5 |
RUN apk add --no-cache gcc musl-dev python3-dev
|
6 |
-
# RUN apk add --update alpine-sdk
|
7 |
|
8 |
RUN adduser -D user
|
9 |
USER user
|
@@ -14,7 +13,7 @@ WORKDIR /app
|
|
14 |
COPY --chown=user ./requirements.txt requirements.txt
|
15 |
COPY --chown=user ./knowledge_base.pl knowledge_base.pl
|
16 |
RUN pip install --no-cache-dir --upgrade pip
|
17 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
18 |
|
19 |
COPY --chown=user . /app
|
20 |
EXPOSE 7860
|
|
|
3 |
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
4 |
RUN apk add swi-prolog
|
5 |
RUN apk add --no-cache gcc musl-dev python3-dev
|
|
|
6 |
|
7 |
RUN adduser -D user
|
8 |
USER user
|
|
|
13 |
COPY --chown=user ./requirements.txt requirements.txt
|
14 |
COPY --chown=user ./knowledge_base.pl knowledge_base.pl
|
15 |
RUN pip install --no-cache-dir --upgrade pip
|
16 |
+
RUN pip install --no-cache-dir --upgrade --user -r requirements.txt
|
17 |
|
18 |
COPY --chown=user . /app
|
19 |
EXPOSE 7860
|