Skip to content

Commit

Permalink
Update github action to allow larger images
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac091 committed Oct 20, 2023
1 parent 7ba5527 commit e16868c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
docker-images: false
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
Expand Down
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ RUN apt-get install --no-install-recommends -y \
nano \
cmake \
tar \
vim
vim \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean

# Make some useful symlinks that are expected to exist
RUN ln -sfn /usr/bin/python${PYTHON_VERSION} /usr/bin/python3 & \
Expand All @@ -70,11 +72,7 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2

# Install dependencies from poetry
COPY --from=builder /src/requirements.txt .
RUN mkdir tmp
RUN export TMPDIR=/root/tmp
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
RUN unset TMPDIR
RUN rm -rf tmp

# Install silnlp
COPY --from=builder /src/dist/*.whl .
Expand Down

0 comments on commit e16868c

Please sign in to comment.