This commit is contained in:
@@ -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