Skip to content

Commit 07ccedc

Browse files
committed
fix dockerfile
1 parent 9d926e0 commit 07ccedc

File tree

2 files changed

+32
-22
lines changed

2 files changed

+32
-22
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: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@ FROM --platform=linux/amd64 python:3.11
44
## Parsons setup ##
55
###################
66

7-
RUN mkdir /src
7+
WORKDIR /src
8+
9+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
10+
COPY pyproject.toml setup.py README.md /src/
811

9-
RUN pip install uv
10-
RUN uv pip install --system .[all]
12+
RUN uv pip install --system --no-cache .[all]
1113

1214
COPY . /src/
13-
WORKDIR /src
1415

15-
RUN python setup.py develop
16+
RUN uv pip install --system --no-cache -e .
1617

1718
# The /app directory can house the scripts that will actually execute on this Docker image.
1819
# Eg. If using this image in a Civis container script, Civis will install your script repo
1920
# (from Github) to /app.
2021
RUN mkdir /app
2122
WORKDIR /app
23+
2224
# Useful for importing modules that are associated with your python scripts:
2325
ENV PYTHONPATH=.:/app

0 commit comments

Comments
 (0)