Skip to content

Commit

Permalink
edited the dockerfile to remove useless steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mrahmatu committed Nov 9, 2023
1 parent 02b15b6 commit 73d27f5
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions career-model/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
FROM python:3.11

WORKDIR /python-microservice
WORKDIR /career-microservice

COPY requirements.txt .
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 73d27f5

Please sign in to comment.