1
- FROM --platform=linux/amd64 python:3.9 -slim-buster as python
1
+ FROM --platform=linux/amd64 python:3.10.12 -slim-buster as python
2
2
3
3
# Metadata
4
- LABEL name="PBG Website "
4
+ LABEL name="Mkdocs website "
5
5
LABEL maintainer="PBG"
6
6
LABEL version="0.1"
7
7
8
8
ARG YOUR_ENV="virtualenv"
9
- ARG POETRY_VERSION="1.5 .1"
9
+ ARG POETRY_VERSION="1.7 .1"
10
10
11
11
ENV YOUR_ENV=${YOUR_ENV} \
12
12
PYTHONDONTWRITEBYTECODE=1 \
@@ -31,22 +31,8 @@ ENV PATH="$POETRY_HOME/bin:$PATH"
31
31
# COPY bin/ssh-config.sh /usr/bin
32
32
# RUN chmod +x /usr/bin/ssh-config.sh
33
33
34
- # Install libraries
35
34
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y \
36
- libpq-dev gcc wget gnupg2 curl openssh-client git make build-essential \
37
- make build-essential libssl-dev zlib1g-dev \
38
- libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
39
- libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
40
- pngquant optipng
41
-
42
- # # add custom host file for your services
43
- # COPY hosts tmp/
44
- # ADD hosts /tmp/hosts
45
- # # Warning: if you test on M1 and arch64 architecture you could have an issue with this line
46
- # RUN mkdir -p -- /lib-override && cp /lib/x86_64-linux-gnu/libnss_files.so.2 /lib-override
47
- # # If you are using mac or arch64 change X86_64-linux-gnu with aarch64-linux-gnu
48
- # RUN perl -pi -e 's:/etc/hosts:/tmp/hosts:g' /lib-override/libnss_files.so.2
49
- # ENV LD_LIBRARY_PATH /lib-override
35
+ wget curl libpq-dev gcc wget gnupg2 curl openssh-client make git build-essential
50
36
51
37
RUN wget -O install-poetry.py https://install.python-poetry.org/ \
52
38
&& python install-poetry.py --version ${POETRY_VERSION}
@@ -64,6 +50,7 @@ RUN poetry install --no-interaction --no-ansi --only main && \
64
50
RUN poetry cache clear --all pypi
65
51
66
52
COPY docs ./docs
53
+ COPY myapp ./myapp
67
54
COPY Makefile .
68
55
COPY mkdocs.yml .
69
56
0 commit comments