Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile 682 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  1. FROM python:3.8.12-slim
  2. ENV PORT=5000
  3. EXPOSE 5000
  4. # start to install backend-end stuff
  5. RUN mkdir -p /app
  6. WORKDIR /app
  7. # Install Python requirements.
  8. # COPY ["Pipfile", "Pipfile.lock", "./"]
  9. # RUN pip install pipenv
  10. # RUN pipenv install --deploy --system
  11. # Install Python requirements.
  12. COPY requirements_api.txt ./
  13. RUN pip install --no-cache-dir -r requirements_api.txt
  14. # Install Python requirements.
  15. COPY ["API_server.py", "./"]
  16. COPY ["models/SelectedModel.keras", "./models/"]
  17. COPY ["models/SelectedTextVectorizerModel.bin", "./models/"]
  18. # Start server
  19. #ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0:$PORT", "fer2013_server:app"]
  20. CMD gunicorn API_server:app --bind 0.0.0.0:$PORT
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...