-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
39 lines (32 loc) · 1.19 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Use alpine base image
FROM alpine:3.20
# Copy the current directory contents into the container at /
COPY /files .
# Install any needed packages
RUN apk update \
&& apk add --no-cache php php-session php-curl php-tokenizer composer git \
&& git clone --depth 1 https://github.com/Art-of-Wifi/UniFi-API-browser.git \
&& apk del git \
&& chmod +x start.sh \
&& cd UniFi-API-browser \
&& cd .. \
&& mv config.php /UniFi-API-browser/config \
&& mv users.php /UniFi-API-browser/config
# Define environment variable
ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ENV LANG="C.UTF-8"
ENV TZ="America/Los_Angeles"
ENV USER="your unifi username"
ENV PASSWORD="your unifi password"
ENV UNIFIURL="https://192.168.1.1"
ENV PORT="443"
ENV NOAPIBROWSERAUTH="0"
ENV DISPLAYNAME="My Site Name"
ENV APIBROWSERUSER="admin"
# this sets password for APIBROWSERUSER to admin - please change when you do this
ENV APIBROWSERPASS="c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec"
# Run when the container launches
# ENTRYPOINT ["./start.sh"]
# ENTRYPOINT ["./bin/ash"]
CMD ["sh", "./start.sh"]
EXPOSE 8000/tcp