Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dockerfile to use ubuntu instead of alpine #468

Merged
merged 1 commit into from
Jan 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
FROM python:3.11-alpine
FROM python:3.11

ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

RUN \
apk add --no-cache \
RUN apt-get update && apt-get -y install --no-install-recommends bats gcc \
git \
git-fast-import \
git-lfs \
openssh \
cairo-dev \
freetype-dev \
python3-pip \
libcairo2-dev \
libfreetype6-dev \
libffi-dev \
jpeg-dev \
libjpeg-dev \
libpng-dev \
zlib-dev \
&& apk add --no-cache --virtual .build gcc musl-dev \
&& apk add --no-cache --upgrade bash \
libz-dev \
&& pip install --upgrade pip \
&& pip install --no-cache-dir mkdocs-material mike pillow cairosvg

Expand All @@ -31,6 +27,8 @@ COPY pyproject.toml pyproject.toml
RUN pip install --no-cache-dir . \
&& rm -rf /tmp/*

RUN git config --global --add safe.directory /docs

WORKDIR /docs

EXPOSE 8000
Expand Down