Skip to content

Commit a1090bd

Browse files
committed
Use pypy
1 parent 6de925e commit a1090bd

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM python:3.12-alpine
1+
FROM pypy:3.11-bookworm
22

33
WORKDIR /usr/src/app
44

55
COPY requirements.txt .
66
RUN pip install -r requirements.txt --no-cache-dir
77
COPY . .
88

9-
CMD ["python", "-u", "src/main.py"]
9+
CMD ["pypy3", "-u", "src/main.py"]

Dockerfile.dev

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
FROM python:3.12-alpine
1+
FROM pypy:3.11-bookworm
22

33
WORKDIR /usr/src/app
44

5-
RUN pip install watchdog
5+
RUN apk add libpq-dev gcc libc-dev
6+
67
COPY requirements.txt .
7-
RUN pip install -r requirements.txt --no-cache-dir
8+
RUN pip install -r requirements.txt
9+
RUN pip install watchdog[watchmedo]
810

911
CMD watchmedo auto-restart --patterns="*.py" --recursive --interval 5 -- python -u src/main.py

Dockerfile.lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12-alpine
1+
FROM pypy:3.11-bookworm
22

33
WORKDIR /usr/src/app
44

0 commit comments

Comments
 (0)