-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
36 lines (25 loc) · 941 Bytes
/
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
# Download base image ubuntu 22.04
FROM ubuntu:22.04
# LABEL about the custom image
LABEL maintainer="[email protected]"
LABEL version="0.1"
LABEL description="OpenFan Controller Web GUI and Server docker image"
LABEL org.opencontainers.image.source=https://github.com/sasakaranovic/openfancontroller
# Disable Prompt During Packages Installation
ARG DEBIAN_FRONTEND=noninteractive
# Update Ubuntu Software repository
RUN apt update
# Install nginx, php-fpm and supervisord from ubuntu repository
RUN apt install -y python3 python3-pip
RUN rm -rf /var/lib/apt/lists/*
RUN apt clean
# Copy all source files
ADD Software/Python /mnt/OpenFan
ADD Software/start.sh /mnt/OpenFan
# Install python modules
RUN pip3 install -r /mnt/OpenFan/requirements.txt
RUN ["chmod", "+x", "/mnt/OpenFan/start.sh"]
# Expose Port for the Application
EXPOSE 3000
# Run entrypoint
ENTRYPOINT ["/mnt/OpenFan/start.sh"]