Skip to content

Commit

Permalink
Containerized the app
Browse files Browse the repository at this point in the history
  • Loading branch information
kbshal authored Mar 22, 2022
1 parent 3aa669c commit b71883a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ WORKDIR /Anytranslate
COPY --from=requirements-stage /tmp/requirements.txt /Anytranslate/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /Anytranslate/requirements.txt
COPY . /Anytranslate
CMD ["gunicorn", "trans_api:app", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:80"]
CMD ["gunicorn", "trans_api:app", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8080"]

0 comments on commit b71883a

Please sign in to comment.