nroggendorff commited on
Commit
58e9d8e
·
verified ·
1 Parent(s): 2279df1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 mkdir -p /app/cache && chmod 777 /app/cache
12
 
13
  COPY app.py .
14
 
15
- CMD ["python", "app.py"]
 
 
 
 
 
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"}'