We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b159c3f commit 4d454a9Copy full SHA for 4d454a9
.dockerignore
@@ -0,0 +1,7 @@
1
+.git
2
+__pycache__
3
+*.pyc
4
+*.pyo
5
+*.pyd
6
+.Python
7
+venv
Dockerfile
@@ -1,12 +1,15 @@
-FROM python:slim
-
-COPY . /app
+FROM python:3.8-slim
WORKDIR /app
-RUN apt update && apt install -y git
+RUN apt update \
+ && apt install -y git \
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+COPY ./requirements.txt ./
10
RUN pip install -r requirements.txt
11
-EXPOSE 8000
12
+COPY ./ ./
13
-CMD python -m uvicorn app:app --host 0.0.0.0 --port 8000
14
+EXPOSE 8000
15
+CMD python -m uvicorn gitserver:app --host 0.0.0.0 --port 8000
0 commit comments