forked from acuparse/acuparse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
75 lines (66 loc) · 2.26 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
##
# Acuparse - AcuRite Access/smartHUB and IP Camera Data Processing, Display, and Upload.
# @copyright Copyright (C) 2015-2022 Maxwell Power
# @author Maxwell Power <max@acuparse.com>
# @link http://www.acuparse.com
# @license AGPL-3.0+
#
# This code is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this code. If not, see <http://www.gnu.org/licenses/>.
##
##
# File: Dockerfile
# Acuparse Dockerfile
##
ARG OS_VERSION=bullseye
FROM php:apache-${OS_VERSION}
ARG BUILD_DATE
ARG VCS_REF
ARG BUILD_VERSION
ARG BUILD_BRANCH
ARG ACUPARSE_DIR='/opt/acuparse'
LABEL MAINTAINER="hello@acuparse.com" \
org.label-schema.schema-version="1.0" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="acuparse/acuparse" \
org.label-schema.description="Acuparse Weather Data Processing" \
org.label-schema.url="https://www.acuarse.com/" \
org.label-schema.vcs-url="https://gitlab.com/acuparse/acuparse" \
org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.version=${BUILD_VERSION} \
org.label-schema.usage="https://docs.acuparse.com/DOCKER" \
org.label-schema.vendor="Acuparse"
RUN echo "Install and Configure PACKAGES" \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -qq && apt-get install -yqq --no-install-recommends \
mariadb-client \
rsyslog \
python3-certbot-apache \
cron \
&& docker-php-ext-install mysqli \
&& docker-php-ext-enable mysqli \
&& apt-get autoremove --purge -yqq \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& unset DEBIAN_FRONTEND
COPY .. "${ACUPARSE_DIR}"
WORKDIR "${ACUPARSE_DIR}"
RUN echo "Copy and run Acuparse BUILD" \
&& mv .docker/* /usr/local/bin/ \
&& rm -rf .docker \
&& chmod +x /usr/local/bin/docker-build \
&& docker-build \
&& rm -rf /usr/local/bin/docker-build
ENTRYPOINT ["docker-entrypoint"]
CMD ["acuparse"]
EXPOSE 443