Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +14 -12
Dockerfile
CHANGED
@@ -1,16 +1,18 @@
|
|
1 |
-
FROM python:3.10-slim-buster
|
2 |
-
|
3 |
-
WORKDIR /app
|
4 |
-
|
5 |
-
COPY requirements.txt requirements.txt
|
6 |
|
7 |
RUN python -m venv venv
|
8 |
ENV PATH="/app/venv/bin:$PATH"
|
9 |
|
10 |
-
RUN apt-get update && \
|
11 |
-
apt-get install -y --no-install-recommends build-essential libffi-dev cmake libcurl4-openssl-dev && \
|
12 |
-
pip3 install --no-cache-dir -r requirements.txt
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim-buster
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
COPY requirements.txt requirements.txt
|
6 |
|
7 |
RUN python -m venv venv
|
8 |
ENV PATH="/app/venv/bin:$PATH"
|
9 |
|
10 |
+
RUN apt-get update && \
|
11 |
+
apt-get install -y --no-install-recommends build-essential libffi-dev cmake libcurl4-openssl-dev && \
|
12 |
+
pip3 install --no-cache-dir -r requirements.txt
|
13 |
+
|
14 |
+
RUN chmod -R 777 translations
|
15 |
+
|
16 |
+
COPY . .
|
17 |
+
|
18 |
+
CMD ["python3", "./run.py"]
|