Skip to content

Commit

Permalink
Update paths in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfraney committed Apr 2, 2024
1 parent 7b21ae6 commit 9c2cecf
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,40 +1,31 @@
# Container image that runs your code
FROM python:3.12-bullseye

# RUN echo "### Install dependencies" >> $GITHUB_STEP_SUMMARY

# Installs ImageMagick with AVIF support
RUN apt remove "*imagemagick*" --purge -y && apt autoremove --purge -y

RUN apt-get -qq update && apt-get -qq install -y ffmpeg build-essential

# RUN echo "### Build & install ImageMacick 7" >> $GITHUB_STEP_SUMMARY

RUN git clone https://github.com/SoftCreatR/imei && \
cd imei && \
chmod +x imei.sh && \
./imei.sh


# Installs Poetry
ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VIRTUALENVS_CREATE=1 \
POETRY_CACHE_DIR=/tmp/poetry_cache

RUN pip install poetry

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
COPY pyproject.toml /pyproject.toml
COPY poetry.lock /poetry.lock

WORKDIR /

# RUN echo "### Install Poetry and Python dependencies" >> $GITHUB_STEP_SUMMARY
# Installs Python dependencies
WORKDIR /github/workspace

RUN pip install poetry
RUN poetry install --no-root

# RUN echo "### Blurring site" >> $GITHUB_STEP_SUMMARY

WORKDIR /github/workspace

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 9c2cecf

Please sign in to comment.