Skip to content

Commit 4d454a9

Browse files
committed
Updated dockerfile
1 parent b159c3f commit 4d454a9

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.dockerignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.git
2+
__pycache__
3+
*.pyc
4+
*.pyo
5+
*.pyd
6+
.Python
7+
venv

Dockerfile

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
FROM python:slim
2-
3-
COPY . /app
1+
FROM python:3.8-slim
42

53
WORKDIR /app
64

7-
RUN apt update && apt install -y git
5+
RUN apt update \
6+
&& apt install -y git \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
COPY ./requirements.txt ./
810
RUN pip install -r requirements.txt
911

10-
EXPOSE 8000
12+
COPY ./ ./
1113

12-
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

Comments
 (0)