Spaces:
Sleeping
Sleeping
ITSAIDI
commited on
Commit
·
ec48521
1
Parent(s):
819b432
update Dockerfile
Browse files- Dockerfile +18 -1
Dockerfile
CHANGED
|
@@ -4,4 +4,21 @@ FROM python:3.10-slim
|
|
| 4 |
# useradd is a Linux command
|
| 5 |
RUN useradd -m -u 1000 user
|
| 6 |
|
| 7 |
-
WORKDIR /firstMcpServer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# useradd is a Linux command
|
| 5 |
RUN useradd -m -u 1000 user
|
| 6 |
|
| 7 |
+
WORKDIR /firstMcpServer
|
| 8 |
+
|
| 9 |
+
# Install uv tool
|
| 10 |
+
|
| 11 |
+
RUN pip install uv
|
| 12 |
+
|
| 13 |
+
# Here we copy the uv configuration file and we set ownership to 'user' with 'chown' Linux command
|
| 14 |
+
COPY --chown=user pyproject.toml .
|
| 15 |
+
|
| 16 |
+
RUN uv sync
|
| 17 |
+
|
| 18 |
+
EXPOSE 8080
|
| 19 |
+
|
| 20 |
+
CMD ["uv","run","server.py"]
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|