Skip to content

Commit

Permalink
fix: dockerfile and example req
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Apr 24, 2023
1 parent de71c18 commit d3be0e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
16 changes: 2 additions & 14 deletions examples/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
# set base image (host OS)

FROM python:3.10

# set the working directory in the container
WORKDIR /app

# install dependencies
RUN pip install dynaconf
RUN pip install fastapi
RUN pip install uvicorn
RUN pip install findmyorder

# copy the content of the local src directory to the working directory
COPY ./examples .

RUN pip install -r requirements.txt
COPY ./findmyorder/core.toml .
EXPOSE 8443 8080
# command to run on container start
CMD [ "python", "./example.py" ]
4 changes: 4 additions & 0 deletions examples/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dynaconf>=3.1.12
fastapi>=0.95.1
uvicorn>=0.21.0
findmyorder>=0.0.12

0 comments on commit d3be0e4

Please sign in to comment.