Skip to content

Commit

Permalink
Update to python image with poetry pre-installed
Browse files Browse the repository at this point in the history
  • Loading branch information
pachovit committed Jul 30, 2024
1 parent 4c3f0a6 commit 2e155c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,9 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: python:3.9-slim
image: cimg/python:3.9
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update && apt-get install -y curl && \
curl -sSL https://install.python-poetry.org | python3 - && \
ln -s /github/home/.local/bin/poetry /usr/local/bin/poetry
- name: Configure Poetry
run: poetry config virtualenvs.create false && poetry install
- name: Run tests
Expand Down
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
FROM python:3.9-slim

# Install Poetry
RUN apt-get update && apt-get install -y curl && \
curl -sSL https://install.python-poetry.org | python3 - && \
ln -s /root/.local/bin/poetry /usr/local/bin/poetry
FROM cimg/python:3.9

# Set working directory
WORKDIR /app
Expand Down

0 comments on commit 2e155c6

Please sign in to comment.