Created
October 6, 2020 06:24
-
-
Save chaitanyamannem/3370607c74bb4ecae2b5587a1442815c 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.8.3 | |
WORKDIR /application | |
# Install and upgrade pip | |
RUN pip install --upgrade pip | |
# Collect pip requirements | |
COPY requirements.txt . | |
# Install pip requirements | |
RUN pip install -r requirements.txt | |
COPY src/ . | |
# Switching to a non-root user | |
RUN useradd appuser && chown -R appuser /application | |
USER appuser | |
CMD ["python", "dataingest/main.py", "--config", "/etc/config/config.json"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment