Skip to content

Commit

Permalink
refactor(Dockerfile): use alpine base image (#79)
Browse files Browse the repository at this point in the history
Co-authored-by: very-doge-wow <very-doge-wow@github.com>
  • Loading branch information
very-doge-wow and very-doge-wow authored Mar 24, 2024
1 parent 087a473 commit 109804f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.2-slim
FROM python:3.12-alpine3.19

USER root

Expand All @@ -7,11 +7,14 @@ WORKDIR app
COPY reader ./reader/
COPY writer ./writer/
COPY stella.py Pipfile Pipfile.lock ./
COPY EXAMPLE/style.css .

RUN pip install pipenv && \
pipenv install --system --deploy && \
chmod +x stella.py && \
ln -s /app/stella.py /usr/local/bin/stella
RUN <<EOF
pip install pipenv
pipenv install --system --deploy
chmod +x stella.py
ln -s /app/stella.py /usr/local/bin/stella
EOF

USER 1000

Expand Down

0 comments on commit 109804f

Please sign in to comment.