sudo-soldier commited on
Commit
ef0420c
·
verified ·
1 Parent(s): ea315aa

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.9-slim
3
+
4
+ RUN apt-get update && apt-get install -y \
5
+ openjdk-11-jdk \
6
+ wget \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Install apktool
10
+ RUN wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool \
11
+ && wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.7.0.jar \
12
+ && mv apktool_2.7.0.jar apktool.jar \
13
+ && chmod +x apktool* \
14
+ && mv apktool* /usr/local/bin/
15
+
16
+ WORKDIR /app
17
+ COPY requirements.txt .
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+ COPY . .
20
+
21
+ EXPOSE 8000
22
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]