This commit is contained in:
1 parent
ef362ad23a
commit
f31ee9ac15
3 files changed
+58
-18
No files matched your search
@@ -24,10 +24,12 @@ ENV API_KEY="Q7Sd#hhFkyHy*T"
|
||||
ENV TARGET_CONTAINER="puppeteer-api"
|
||||
ENV CHECK_INTERVAL=60
|
||||
|
||||
# Create a non-root user
|
||||
RUN useradd -m healthcheck && chown -R healthcheck:healthcheck /app
|
||||
# Create docker group and user with docker group access
|
||||
RUN groupadd -r docker && \
|
||||
useradd -r -g docker healthcheck && \
|
||||
chown -R healthcheck:docker /app
|
||||
|
||||
USER healthcheck
|
||||
|
||||
# Run the healthcheck script
|
||||
CMD ["python", "healthcheck.py"]
|
||||
CMD ["python", "healthcheck.py"]
|
||||
Reference in new issue
Block a user