forked from scyto/docker-UnifiBrowser
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 775 Bytes
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 775 Bytes
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
# 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/New_York
# Run when the container launches
# ENTRYPOINT ["./start.sh"]
# ENTRYPOINT ["./bin/ash"]
CMD ["sh", "./start.sh"]
EXPOSE 8000/tcp