change: to new build environment
This commit is contained in:
parent
50552d7245
commit
f6db4212fd
3 changed files with 4 additions and 35 deletions
|
@ -5,13 +5,10 @@ ENV DEBUG_MODE=False
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN apk add --no-cache git python3
|
||||
RUN python3 -m venv /opt/.venv
|
||||
RUN /opt/.venv/bin/pip install --no-cache-dir -r requirements.txt
|
||||
RUN apk del git
|
||||
RUN apk add --no-cache python3 py3-flask py3-waitress
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
HEALTHCHECK --interval=5m CMD wget --delete-after http://localhost:8080
|
||||
|
||||
CMD [ "/opt/.venv/bin/waitress-serve", "--listen=0.0.0.0:8080", "app:app" ]
|
||||
CMD [ "waitress-serve", "--listen=0.0.0.0:8080", "app:app" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue