Skip to content

Commit

Permalink
Merge pull request #51 from benyaming/move-to-pdm
Browse files Browse the repository at this point in the history
Move to PDM
  • Loading branch information
benyaming authored Oct 20, 2023
2 parents 3cb9de1 + 93fe422 commit 5b205e6
Show file tree
Hide file tree
Showing 7 changed files with 387 additions and 803 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.11-slim

RUN pip install poetry
RUN pip install pdm
WORKDIR /home/app
COPY . .
WORKDIR /home/app/zmanim_api
RUN poetry install
RUN pdm install
ENV PYTHONPATH=/home/app
ENV DOCKER_MODE=true
EXPOSE 8000
CMD ["poetry", "run", "python", "main.py"]
CMD ["pdm", "run", "python", "main.py"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ To get a local copy up and running follow these simple steps.

#### Python
1) Clone/fork the repo
2) Use poetry for build environment and install dependencies: `poetry install`
2) Use PDM for build environment and install dependencies: `pdm install`
3) Go to project folder: `cd %repo_location%/zmanim_api`
4) Run `python main.py`
5) Open http://localhost:8000 in your browser to explore the swagger
Expand Down
357 changes: 357 additions & 0 deletions pdm.lock

Large diffs are not rendered by default.

Loading

0 comments on commit 5b205e6

Please sign in to comment.