Skip to content

Instantly share code, notes, and snippets.

@netletic
Last active June 5, 2021 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netletic/f8dc19a8204cce5e0d03cfe917a3f5f8 to your computer and use it in GitHub Desktop.
Save netletic/f8dc19a8204cce5e0d03cfe917a3f5f8 to your computer and use it in GitHub Desktop.
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