Skip to content

Commit

Permalink
Merge pull request seanshoffman#1 from pluralsight-projects/dockerfil…
Browse files Browse the repository at this point in the history
…e-and-structure

add Dockerfile and flatten folder structure by 1 level
  • Loading branch information
willderness authored Nov 18, 2019
2 parents 4c6e529 + e2a8a43 commit 24db2d7
Show file tree
Hide file tree
Showing 54 changed files with 19 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
FROM python:3.7-alpine

WORKDIR /src/app/

COPY ./requirements.txt .

RUN ["pip", "install", "-r", "./requirements.txt"]

COPY . .

RUN addgroup -S projects && adduser -S -H projects -G projects
RUN chown -R projects:projects /src/app

USER projects
File renamed without changes.
5 changes: 4 additions & 1 deletion blogproj/blogproj/settings.py → blogproj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
TEST_OUTPUT_DIR = BASE_DIR
TEST_OUTPUT_FILE_NAME = '.report.xml'

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
Expand Down Expand Up @@ -128,4 +131,4 @@
LOGIN_URL = 'login'
LOGIN_REDIRECT_URL = 'index'

AUTH_USER_MODEL = 'users.User'
AUTH_USER_MODEL = 'users.User'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Django==2.2.5
pytz==2019.2
six==1.13.0
sqlparse==0.3.0
unittest-xml-reporting==2.5.2
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 24db2d7

Please sign in to comment.