Skip to content

Commit

Permalink
🐛 fix: Makefile and Dockerfile updated
Browse files Browse the repository at this point in the history
  • Loading branch information
metalpoch committed Oct 18, 2024
1 parent 4a5fd7a commit 8817655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ container-smart:
docker build . -t smart -f ./smart/dockerfile

container-smart-run:
docker run --rm -p 8000:8000 --name smart-olt --network smart-network smart
docker run --rm -p 3003:3003 --name olt-blueprint-smart olt-blueprint-smart

14 changes: 6 additions & 8 deletions smart/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM python:alpine
FROM python:3.12-alpine

WORKDIR /app

COPY ./smart/requirements.txt .

RUN python -m venv ./venv
RUN source ./venv/bin/activate
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .
EXPOSE 8000
COPY . .

EXPOSE 3003

CMD ["fastapi, run", "./smart/main.py"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3003"]

0 comments on commit 8817655

Please sign in to comment.