Skip to content

Commit

Permalink
Updated Legacy ENV Path (#1008)
Browse files Browse the repository at this point in the history
* Minor Change

* fix: pin python version + fix font path

* More recent Python version

---------

Co-authored-by: tessier <[email protected]>
  • Loading branch information
0xAJX and gabriel-tessier authored Nov 20, 2024
1 parent 7029f48 commit 13c0a9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# use latest python 3 alpine image.
FROM python:3-alpine
# use latest python alpine image.
FROM python:3.12.7-alpine3.20

# install system dependencies.
RUN apk update && apk add --no-cache \
Expand All @@ -9,14 +9,14 @@ RUN apk update && apk add --no-cache \
RUN go install github.com/mingrammer/round@latest

# install fonts
RUN curl -O https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKjp-hinted.zip \
RUN curl -O https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKjp-hinted.zip \
&& mkdir -p /usr/share/fonts/NotoSansCJKjp \
&& unzip NotoSansCJKjp-hinted.zip -d /usr/share/fonts/NotoSansCJKjp/ \
&& rm NotoSansCJKjp-hinted.zip \
&& fc-cache -fv

# add go bin to path.
ENV PATH "$PATH:/root/go/bin"
ENV PATH="$PATH:/root/go/bin"

# project directory.
WORKDIR /usr/src/diagrams
Expand All @@ -25,4 +25,4 @@ WORKDIR /usr/src/diagrams
COPY . .

# install python requirements.
RUN pip install black graphviz jinja2
RUN pip install black graphviz jinja2

0 comments on commit 13c0a9c

Please sign in to comment.