File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM python:alpine
1+ FROM python:3.10-alpine
2+
23RUN apk add --update gcc libc-dev linux-headers
34
45WORKDIR /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 .
810RUN 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" ]
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ git clone git@github.com:cowprotocol/solver-template-py.git
12122 . Rust v1.60.0 or Docker
1313
1414``` sh
15- python3 -m venv venv
15+ python3.10 -m venv venv
1616source ./venv/bin/activate
1717pip install -r requirements.txt
1818```
You can’t perform that action at this time.
0 commit comments