Streamixph05 commited on
Commit
c2bc2fb
·
verified ·
1 Parent(s): 15c846b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -14
Dockerfile CHANGED
@@ -1,20 +1,11 @@
1
- FROM golang:1.21-alpine
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
- # I-clone ang repository sa /app. Gamit ang '.' para sa current directory.
10
- RUN git clone -b python https://github.com/EverythingSuckz/TG-FileStreamBot.git .
11
 
12
- # 1. I-download ang modules, ipinapasa ang --mod=mod (Optionally mas malinaw, pero subukan mo muna wala)
13
- # Kung mag-error pa rin, subukan mong tanggalin ang -C at idagdag ang -mod=mod
14
- RUN go mod download
15
 
16
- # 2. I-build ang Go application. Ang main source code ay nasa WebStreamer/
17
- RUN go build -o WebStreamer ./WebStreamer/
18
 
19
- # 3. Patakbuhin ang na-build na executable
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"]