Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -14
Dockerfile
CHANGED
|
@@ -1,20 +1,11 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
# I-instal ang git
|
| 4 |
-
RUN apk add --no-cache git
|
| 5 |
-
|
| 6 |
-
# I-set ang working directory
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
-
|
| 10 |
-
RUN git clone -b python https://github.com/EverythingSuckz/TG-FileStreamBot.git .
|
| 11 |
|
| 12 |
-
|
| 13 |
-
# Kung mag-error pa rin, subukan mong tanggalin ang -C at idagdag ang -mod=mod
|
| 14 |
-
RUN go mod download
|
| 15 |
|
| 16 |
-
|
| 17 |
-
RUN go build -o WebStreamer ./WebStreamer/
|
| 18 |
|
| 19 |
-
|
| 20 |
-
CMD ["./WebStreamer"]
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
RUN apt-get update && apt-get install -y git
|
|
|
|
| 6 |
|
| 7 |
+
RUN git clone -b python https://github.com/EverythingSuckz/TG-FileStreamBot.git .
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
RUN pip install -r requirements.txt
|
|
|
|
| 10 |
|
| 11 |
+
CMD ["python3", "-m", "WebStreamer"]
|
|
|