Update Dockerfile
This commit is contained in:
parent
d174d30572
commit
ad8a33fb37
1 changed files with 1 additions and 15 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -1,15 +1 @@
|
|||
FROM python:3.11-slim AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN mkdocs build
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["mkdocs", "serve", "--port", "80"]
|
||||
FROM python:3.11-slim AS builder WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir --upgrade -r requirements.txt COPY . . RUN mkdocs build EXPOSE 80 CMD ["mkdocs", "serve", "--host", "0.0.0.0", "--port", "80"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue