forked from texasaggie97-zz/hover-dns-updater
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerFile
More file actions
22 lines (15 loc) · 674 Bytes
/
Copy pathDockerFile
File metadata and controls
22 lines (15 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use an official Python runtime as a parent image
FROM python:3.6-slim
# Set the working directory to /app
WORKDIR /hover-dns-updater
# Copy the current directory contents into the container at /app
ADD hover-dns-updater.py hover-update.cfg requirements.txt /hover-dns-updater/
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt && \
pip install --upgrade flake8 && \
flake8 --max-line-length 120 . && \
pip uninstall -y flake8
# Define environment variable
ENV NAME hover-dns-updater
# Run app.py when the container launches
CMD ["python", "hover-dns-updater.py", "--service"]