Skip to content

Commit 3763c05

Browse files
committed
fix dockerfile
1 parent 9d926e0 commit 3763c05

File tree

2 files changed

+31
-23
lines changed

2 files changed

+31
-23
lines changed

.dockerignore

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
.dockerignore
2-
Dockerfile
3-
__pycache__
4-
*.pyc
5-
*.pyo
6-
*.pyd
7-
.Python
8-
env
9-
pip-log.txt
10-
pip-delete-this-directory.txt
11-
.tox
12-
.coverage
13-
.coverage.*
14-
.cache
15-
coverage.xml
16-
*,cover
17-
*.log
1+
# Git
182
.git
3+
*.gitignore
4+
5+
# Python artifacts
6+
__pycache__/
7+
.pytest_cache/
8+
.ruff_cache/
9+
.venv/
10+
venv/
11+
build/
12+
dist/
13+
*.egg-info/
14+
.coverage
15+
16+
# Docker/CI
17+
Dockerfile
18+
.dockerignore
19+
.circleci/
20+
.github/
21+
.pre-commit-config.yaml
22+
23+
# OS/IDEs
24+
.DS_Store
25+
.vscode/
26+
.idea/

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ FROM --platform=linux/amd64 python:3.11
55
###################
66

77
RUN mkdir /src
8-
9-
RUN pip install uv
10-
RUN uv pip install --system .[all]
11-
128
COPY . /src/
139
WORKDIR /src
1410

15-
RUN python setup.py develop
11+
# Install uv
12+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
13+
14+
RUN uv pip install --system -e .[all]
1615

1716
# The /app directory can house the scripts that will actually execute on this Docker image.
1817
# Eg. If using this image in a Civis container script, Civis will install your script repo
1918
# (from Github) to /app.
2019
RUN mkdir /app
2120
WORKDIR /app
21+
2222
# Useful for importing modules that are associated with your python scripts:
23-
ENV PYTHONPATH=.:/app
23+
ENV PYTHONPATH=.:/app

0 commit comments

Comments
 (0)