Dockerised and prepared with .env
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# Install required dependencies
|
||||
RUN apk add --no-cache \
|
||||
bash \
|
||||
curl \
|
||||
ca-certificates
|
||||
|
||||
# Create application directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy monitoring script
|
||||
COPY thinkcenter_monitor.sh /app/thinkcenter_monitor.sh
|
||||
|
||||
# Create log directory
|
||||
RUN mkdir -p /var/log
|
||||
|
||||
# Make script executable
|
||||
RUN chmod +x /app/thinkcenter_monitor.sh
|
||||
|
||||
# Set the entrypoint
|
||||
CMD ["/app/thinkcenter_monitor.sh"]
|
||||
Reference in New Issue
Block a user