Skip to content

Commit 5c9279a

Browse files
author
lijianguo
committed
chore(dockerfile): use drycc/base image
1 parent a111b46 commit 5c9279a

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
FROM python:3.8-alpine
1+
FROM docker.io/drycc/base:bullseye
22

3+
ENV PYTHON_VERSION=3.10.2
34
COPY . /app
45
WORKDIR /app
56

6-
RUN python -m venv /usr/local/env \
7+
RUN export DEBIAN_FRONTEND=noninteractive \
8+
&& install-stack python $PYTHON_VERSION && . init-stack \
9+
&& python -m venv /usr/local/env \
710
&& source /usr/local/env/bin/activate \
811
&& pip install -r requirements.txt
912

10-
ENV PATH /usr/local/env/bin:$PATH
11-
1213
EXPOSE 8000
13-
CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"]
14+
CMD ["PATH=/usr/local/env/bin:\$PATH", "mkdocs", "serve", "-a", "0.0.0.0:8000"]

0 commit comments

Comments
 (0)