Skip to content

Commit ff84fdc

Browse files
authored
Merge pull request #29 from cowprotocol/update_docker
Use python 3.10
2 parents 994d928 + 456b006 commit ff84fdc

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
FROM python:alpine
1+
FROM python:3.10-alpine
2+
23
RUN apk add --update gcc libc-dev linux-headers
34

45
WORKDIR /app
56

6-
# Only copies requirements.txt and src directory (see .dockerignore)
7-
COPY . .
7+
# First copy over the requirements.txt and install dependencies, this makes
8+
# building subsequent images easier.
9+
COPY requirements.txt .
810
RUN pip install -r requirements.txt
911

10-
ENTRYPOINT [ "python3", "-m" , "src._server"]
12+
# Copy full source (see .dockerignore)
13+
COPY . .
14+
15+
CMD [ "python3", "-m" , "src._server"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ git clone git@github.com:cowprotocol/solver-template-py.git
1212
2. Rust v1.60.0 or Docker
1313

1414
```sh
15-
python3 -m venv venv
15+
python3.10 -m venv venv
1616
source ./venv/bin/activate
1717
pip install -r requirements.txt
1818
```

0 commit comments

Comments
 (0)