Skip to content

Commit

Permalink
dockerfile updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mrahmatu committed Nov 10, 2023
1 parent 9468b82 commit 61071e3
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions career-model/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
FROM python:3.11

WORKDIR /python-microservice

COPY requirements.txt .

WORKDIR /career-microservice
COPY . /career-microservice
RUN pip install flask
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

RUN pip install -r requirements.txt
EXPOSE 80

ENV PORT 80

ENV HOSTNAME "0.0.0.0"

CMD ["flask", "run", "--host", "0.0.0.0", "--port", "80"]
CMD ["flask", "run", "--host=0.0.0.0", "--port=80"]

0 comments on commit 61071e3

Please sign in to comment.