newsreader/Dockerfile
sonny 858f84aaad Refactor endpoint tests
Replace force_login calls with login call from client class in setUp
2019-10-28 21:35:19 +01:00

18 lines
417 B
Docker

FROM python:3.7-buster
# Run project binaries from the user's local bin folder
ENV PATH=/home/newsreader/.local/bin:$PATH
# Set the default shell
RUN useradd -ms /bin/bash newsreader
RUN mkdir /app
WORKDIR /app
RUN chown newsreader:newsreader /app
USER newsreader
# Use a seperate layer for the project requirements
COPY requirements /app/requirements
RUN pip install --user -r requirements/dev.txt
COPY . /app/