Update Dockerfile, remove useless comments
This commit is contained in:
parent
3c3592b07c
commit
53cec7b406
|
@ -1,4 +1,3 @@
|
||||||
# For more information, please refer to https://aka.ms/vscode-docker-python
|
|
||||||
FROM python:3.8-slim-buster
|
FROM python:3.8-slim-buster
|
||||||
|
|
||||||
# Keeps Python from generating .pyc files in the container
|
# Keeps Python from generating .pyc files in the container
|
||||||
|
@ -14,13 +13,8 @@ RUN python -m pip install -r requirements.txt
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD dockstat.py /app
|
ADD dockstat.py /app
|
||||||
|
|
||||||
# Switching to a non-root user, please refer to https://aka.ms/vscode-docker-python-user-rights
|
|
||||||
# RUN useradd appuser && chown -R appuser /app
|
|
||||||
# USER appuser
|
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
|
|
||||||
CMD ["python", "dockstat.py"]
|
CMD ["python", "dockstat.py"]
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=3s --retries=1 \
|
HEALTHCHECK --interval=30s --timeout=3s --retries=1 \
|
||||||
|
|
Loading…
Reference in a new issue