Last active
June 5, 2021 19:52
-
-
Save netletic/f8dc19a8204cce5e0d03cfe917a3f5f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.9 | |
LABEL maintainer="Jarno Timmermans" | |
RUN groupadd -r netinfo && useradd -r -g netinfo netinfo | |
RUN chsh -s /usr/sbin/nologin root | |
WORKDIR /home/netinfo | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
EXPOSE 8000 | |
COPY ./app ./app | |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment