mirror of
https://github.com/SnowMB/traefik-certificate-extractor.git
synced 2025-09-17 12:44:30 +08:00
Added basic extractor
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# Use Python on Alpine Linux as base image
|
||||
FROM python:alpine
|
||||
|
||||
# Create working directory
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
|
||||
# Copy requirements.txt to force Docker not to use the cache
|
||||
COPY requirements.txt /app
|
||||
|
||||
# Install app dependencies
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
# Copy app source
|
||||
COPY . /app
|
||||
|
||||
# Define entrypoint of the app
|
||||
ENTRYPOINT ["python3", "extractor.py"]
|
Reference in New Issue
Block a user