Skip to content

Instantly share code, notes, and snippets.

@chaitanyamannem
Created October 6, 2020 06:24
Show Gist options
  • Save chaitanyamannem/3370607c74bb4ecae2b5587a1442815c to your computer and use it in GitHub Desktop.
Save chaitanyamannem/3370607c74bb4ecae2b5587a1442815c to your computer and use it in GitHub Desktop.
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