Update Dockerfile
Browse files- Dockerfile +14 -4
Dockerfile
CHANGED
|
@@ -1,9 +1,19 @@
|
|
| 1 |
FROM python:3.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
WORKDIR /app
|
|
|
|
| 3 |
RUN git clone https://github.com/RockChinQ/LangBot .
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
RUN chmod
|
|
|
|
| 7 |
EXPOSE 5300
|
| 8 |
EXPOSE 2280-2290
|
| 9 |
-
|
|
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
+
|
| 3 |
+
# Create a clean working directory
|
| 4 |
+
WORKDIR /tmp/build
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
RUN pip install -r requirements.txt
|
| 7 |
+
|
| 8 |
+
# Create app directory
|
| 9 |
WORKDIR /app
|
| 10 |
+
RUN mkdir -p /app/temp && chmod 777 /app/temp
|
| 11 |
RUN git clone https://github.com/RockChinQ/LangBot .
|
| 12 |
+
|
| 13 |
+
# Set permissions
|
| 14 |
+
RUN chmod -R 777 /app
|
| 15 |
+
|
| 16 |
EXPOSE 5300
|
| 17 |
EXPOSE 2280-2290
|
| 18 |
+
|
| 19 |
+
CMD ["python", "main.py"]
|