Create Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM mcr.microsoft.com/dotnet/sdk:8.0
|
| 2 |
+
WORKDIR /app
|
| 3 |
+
|
| 4 |
+
# Python ve gerekli araçları kur
|
| 5 |
+
RUN apt-get update && apt-get install -y python3 python3-pip wget unzip
|
| 6 |
+
|
| 7 |
+
# Python kütüphanelerini kur
|
| 8 |
+
COPY requirements.txt .
|
| 9 |
+
RUN pip3 install --no-cache-dir -r requirements.txt --break-system-packages
|
| 10 |
+
|
| 11 |
+
# UndertaleModTool (UMT) Son Sürümünü İndir ve Kur
|
| 12 |
+
RUN wget https://github.com/UnderminersTeam/UndertaleModTool/releases/download/0.6.2.0/UndertaleModTool_v0.6.2.0_linux-x64.zip -O umt.zip \
|
| 13 |
+
&& unzip umt.zip -d umt \
|
| 14 |
+
&& rm umt.zip \
|
| 15 |
+
&& chmod +x umt/UndertaleModCli
|
| 16 |
+
|
| 17 |
+
# Kendi kodlarımızı kopyala
|
| 18 |
+
COPY . .
|
| 19 |
+
|
| 20 |
+
# Sunucuyu başlat
|
| 21 |
+
EXPOSE 7860
|
| 22 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|