Skip to content

Commit e148a1a

Browse files
authored
Merge pull request #7 from mjanez/develop
Improve docker politics
2 parents ebe080c + f38f60e commit e148a1a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
88
RUN pip install --no-cache-dir pdm
99

1010
COPY pyproject.toml /app/pyproject.toml
11+
COPY pdm.lock /app/pdm.lock
1112

1213
RUN pdm install --prod --no-self --check
1314

1415
COPY docs2md.py /app/docs2md.py
1516
COPY src /app/src
1617
COPY config.yml.example /app/config.yml.example
1718

18-
ENTRYPOINT ["python", "/app/docs2md.py"]
19+
ENTRYPOINT ["pdm", "run", "python", "/app/src/main.py"]
1920
CMD ["config.yml"]

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
services:
22
docs2md:
3+
image: ghcr.io/mjanez/docs2md:latest
4+
pull_policy: missing
35
build: .
46
container_name: docs2md
57
volumes:

0 commit comments

Comments
 (0)