Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
-
FROM python:
|
2 |
|
3 |
-
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
4 |
-
RUN
|
5 |
-
RUN
|
6 |
-
RUN
|
|
|
|
|
7 |
|
8 |
WORKDIR /app
|
9 |
COPY . /app
|
@@ -11,8 +13,6 @@ COPY . /app
|
|
11 |
RUN pip install --no-cache-dir --upgrade pip
|
12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
13 |
|
14 |
-
# RUN echo 1 | swipl pack install janus
|
15 |
-
RUN swipl -g "pack_install('janus-1.0.tgz')" -t halt
|
16 |
RUN python -c "import janus_swi as janus"
|
17 |
|
18 |
EXPOSE 7860
|
|
|
1 |
+
FROM python:ubuntu
|
2 |
|
3 |
+
# RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
4 |
+
RUN apt install -y git
|
5 |
+
RUN apt install -y software-properties-common
|
6 |
+
RUN apt-add-repository ppa:swi-prolog/stable
|
7 |
+
RUN apt install -y swi-prolog
|
8 |
+
RUN apt install -y gcc python3-dev
|
9 |
|
10 |
WORKDIR /app
|
11 |
COPY . /app
|
|
|
13 |
RUN pip install --no-cache-dir --upgrade pip
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
15 |
|
|
|
|
|
16 |
RUN python -c "import janus_swi as janus"
|
17 |
|
18 |
EXPOSE 7860
|