Skip to content

Commit 4f04617

Browse files
authored
Merge pull request #22 from jianxiaoguo/main
chore(dockerfile): use drycc/base image
2 parents a111b46 + 5c9279a commit 4f04617

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)