-
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.
Merge pull request #342 from uw-it-aca/task/nginx-container
use nginx to handle redirects
- Loading branch information
Showing
24 changed files
with
86 additions
and
318 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
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,26 +1 @@ | ||
ARG DJANGO_CONTAINER_VERSION=2.0.3 | ||
|
||
FROM us-docker.pkg.dev/uwit-mci-axdd/containers/django-container:${DJANGO_CONTAINER_VERSION} AS app-container | ||
|
||
USER root | ||
RUN apt-get update && apt-get install libpq-dev -y | ||
USER acait | ||
|
||
ADD --chown=acait:acait . /app/ | ||
ADD --chown=acait:acait docker/ /app/project/ | ||
ADD --chown=acait:acait docker/app_start.sh /scripts | ||
RUN chmod u+x /scripts/app_start.sh | ||
|
||
RUN /app/bin/pip install -r requirements.txt | ||
RUN /app/bin/pip install psycopg2 | ||
|
||
RUN . /app/bin/activate && pip install nodeenv && nodeenv -p &&\ | ||
npm install -g npm && ./bin/npm install less -g | ||
|
||
RUN . /app/bin/activate && python manage.py collectstatic --noinput &&\ | ||
python manage.py compress -f | ||
|
||
FROM us-docker.pkg.dev/uwit-mci-axdd/containers/django-test-container:${DJANGO_CONTAINER_VERSION} AS app-test-container | ||
|
||
COPY --from=app-container /app/ /app/ | ||
COPY --from=app-container /static/ /static/ | ||
FROM us-docker.pkg.dev/uwit-mci-axdd/containers/nginx-container:1.1.2 AS app-container |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.