This repository was archived by the owner on Jan 1, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
84 lines (71 loc) · 2.4 KB
/
Dockerfile
File metadata and controls
84 lines (71 loc) · 2.4 KB
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
76
77
78
79
80
81
82
83
84
ARG BUILD_FROM=ghcr.io/hassio-addons/base:14.0.2
# hadolint ignore=DL3006
FROM ${BUILD_FROM}
# Set S6 wait time
ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0
ENV LANG C.UTF-8
ENV APP_DIR="/app"
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Setup base
# hadolint ignore=DL3003
# Install app dependencies
RUN apk -U update
RUN apk -U upgrade
RUN apk -U add --no-cache \
ipmitool
RUN apk -U add --no-cache \
nginx=1.24.0-r7
ENV PHPVERS="81"
RUN apk -U add --no-cache \
php$PHPVERS \
php$PHPVERS-fpm \
php$PHPVERS-curl \
php$PHPVERS-dom \
php$PHPVERS-gettext \
php$PHPVERS-xml \
php$PHPVERS-simplexml \
php$PHPVERS-zip \
php$PHPVERS-zlib \
php$PHPVERS-gd \
php$PHPVERS-openssl \
php$PHPVERS-json \
php$PHPVERS-mbstring \
php$PHPVERS-ctype \
php$PHPVERS-opcache \
php$PHPVERS-session \
php$PHPVERS-tokenizer
RUN mkdir -p /app \
&& mkdir /app/cache \
&& mkdir /var/tmp/nginx
# Copy root filesystem
COPY rootfs /
# Corrects permissions for /app directory
RUN if [ -d /app ]; then chown -R nginx /app; fi
RUN chown -R nginx /var/lib/nginx
RUN chmod -R 777 /var/lib/nginx
# Corrects permissions for s6 v3
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi
# Build arguments
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_REF
ARG BUILD_VERSION
ARG BUILD_REPOSITORY="MNeverOff/ipmi-server"
LABEL \
maintainer="Mike Neverov <mike@neveroff.dev>" \
org.opencontainers.image.title="IPMI Server for Docker" \
org.opencontainers.image.description="Standalone ipmi server docker container with a Symfony app from @ateodorescu" \
org.opencontainers.image.vendor="Mike Neverov" \
org.opencontainers.image.authors="Mike Neverov <mike@neveroff.dev>, Adrian Teodorescu <ateodorescu@gmail.com>" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://neveroff.dev" \
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}