Add Dev Mode and fix test race conditions.

This commit is contained in:
Ben Rog-Wilhelm 2022-11-09 21:29:18 -06:00 committed by GitHub
parent 947453869e
commit adc24ec91e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 14 deletions

View file

@ -1,4 +1,6 @@
FROM python:3.11
###################################################################
# Base/release container
FROM python:3.11 AS release
ARG DEBIAN_FRONTEND=noninteractive
@ -19,3 +21,16 @@ EXPOSE 80/tcp
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]
###################################################################
# Dev container
FROM release AS dev
# we don't actually do anything different yet
###################################################################
# Utility container for running commands (tests, most notably)
FROM release AS operation
# don't run the server itself, just start up the environment and assume we'll exec things from the outside
CMD sleep infinity