-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Actually use the build arguments in the docker file Add build argument for the UWSGI version Add supported-versions.yml Reuse service definition in docker-compose.yml (cherry picked from commit 34d0c35)
- Loading branch information
Showing
4 changed files
with
21 additions
and
27 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,12 +1,12 @@ | ||
FROM python:3.6-alpine | ||
ARG UWSGI_PYTHON_VERSION | ||
FROM python:${UWSGI_PYTHON_VERSION}-alpine | ||
|
||
ARG UWSGI_VERSION | ||
RUN apk add --no-cache --virtual .build-deps gcc libc-dev linux-headers curl | ||
RUN pip install --no-cache-dir --trusted-host pypi.python.org uwsgi | ||
RUN pip install --no-cache-dir --trusted-host pypi.python.org uwsgi==${UWSGI_VERSION} | ||
|
||
WORKDIR /app | ||
COPY testdata/app /app | ||
|
||
HEALTHCHECK --interval=1s --retries=60 --timeout=10s CMD curl http://localhost:8080/ | ||
EXPOSE 8080 9191 9192 | ||
|
||
CMD [""] |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
variants: | ||
- UWSGI_VERSION: 2.0.18 |
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