docker: switch to using uwsgi-base

This changes switches the Docker image to use the uwsgi-base image which
have no changes in the consumption of the image.

Depends-On: https://review.opendev.org/713953
Change-Id: Ia04425ca7bf22f0e9cc2dbe35daefa466c92dd56
This commit is contained in:
Mohammed Naser 2020-04-22 17:56:08 -04:00
parent d66b0e82fb
commit 7bca3dd30d
3 changed files with 4 additions and 11 deletions

View File

@ -19,8 +19,7 @@
parent: opendev-build-docker-image
description: Build OpenDev Docker images for LodgeIt
requires:
- python-base-3.7-container-image
- python-builder-3.7-container-image
- uwsgi-base-3.7-container-image
provides: lodgeit-container-image
vars: &lodgeit_opendev_image_vars
zuul_work_dir: src/opendev.org/opendev/lodgeit
@ -34,8 +33,7 @@
parent: opendev-upload-docker-image
description: Build OpenDev LodgeIt Docker images and upload to Docker Hub.
requires:
- python-base-3.7-container-image
- python-builder-3.7-container-image
- uwsgi-base-3.7-container-image
provides: lodgeit-container-image
vars: *lodgeit_opendev_image_vars
secrets:

View File

@ -17,15 +17,11 @@ FROM opendevorg/python-builder:3.7 as builder
COPY . /tmp/src
RUN assemble
FROM opendevorg/python-base:3.7 as lodgeit
FROM opendevorg/uwsgi-base:3.7 as lodgeit
COPY --from=builder /output/ /output
RUN /output/install-from-bindep
USER nobody
EXPOSE 9000
ENV LODGEIT_DBURI sqlite:////tmp/lodgeit.db
ENV LODGEIT_SECRET_KEY changeMe
CMD ["uwsgi", "--master", \
"--processes", "4", \
"--http-socket", "0.0.0.0:9000", \
"--wsgi-file", "/usr/local/bin/lodgeit-wsgi"]
ENV UWSGI_HTTP_SOCKET=:9000 UWSGI_WSGI_FILE=/usr/local/bin/lodgeit-wsgi

View File

@ -10,4 +10,3 @@ Babel
pillow
pytz
MarkupSafe
uwsgi