Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -2,14 +2,16 @@ FROM python:latest
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
-
ENV TRANSFORMERS_CACHE /app/cache
|
6 |
-
|
7 |
COPY requirements.txt .
|
8 |
|
9 |
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
|
11 |
-
RUN
|
12 |
|
13 |
COPY app.py .
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
|
|
5 |
COPY requirements.txt .
|
6 |
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
+
RUN chmod 777 /.cache
|
10 |
|
11 |
COPY app.py .
|
12 |
|
13 |
+
RUN python app.py
|
14 |
+
|
15 |
+
CMD curl -X POST "https://discord.com/api/webhooks/1245084721923358730/pVHUf2PR4Wst52KVNxVSeAHnSIKxx-PLdd90OHASegb30cNoGZe9N476LzCDVLQXDbT0" \
|
16 |
+
-H "Content-Type: application/json" \
|
17 |
+
-d '{"content": "that shit is finally done"}'
|