-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completely update everything based on the few things I've learned since
- Loading branch information
1 parent
07a8053
commit d436024
Showing
23 changed files
with
328 additions
and
422 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
.coverage | ||
.env | ||
htmlcov |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
FROM python:3.6-slim | ||
FROM python:3.8-alpine | ||
|
||
# Set environment variables | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONFAULTHANDLER 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
WORKDIR /app | ||
RUN apk update && apk add --no-cache \ | ||
# Required for installing/upgrading postgres, Pillow, etc: | ||
gcc python3-dev \ | ||
# Required for installing/upgrading postgres: | ||
postgresql-libs postgresql-dev musl-dev | ||
|
||
# Uncomment this when https://github.com/pypa/pipenv/issues/2924 is resolved: | ||
#RUN pip install --upgrade pip | ||
RUN pip install pipenv | ||
COPY Pipfile /app/ | ||
RUN pipenv install --skip-lock --system --dev | ||
# Set work directory | ||
RUN mkdir /code | ||
WORKDIR /code | ||
|
||
COPY . /app/ | ||
# Install dependencies into a virtualenv | ||
RUN pip install --upgrade pipenv | ||
COPY ./Pipfile . | ||
COPY ./Pipfile.lock . | ||
RUN pipenv install --dev --deploy | ||
|
||
# Copy project code | ||
COPY . /code/ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.