Page MenuHomePhorge

Dockerfile
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

Dockerfile

FROM apheleia/almalinux9
RUN dnf -y install \
--setopt 'tsflags=nodocs' \
wget \
nginx && \
dnf clean all
ARG ELEMENTWEB_VERSION="v1.11.35"
RUN dnf -y install \
--setopt 'tsflags=nodocs' \
nginx \
wget \
&& dnf clean all
# Forward request logs to Docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
RUN wget "https://github.com/vector-im/element-web/releases/download/${ELEMENTWEB_VERSION}/element-${ELEMENTWEB_VERSION}.tar.gz" -O "/opt/element-${ELEMENTWEB_VERSION}.tar.gz" && \
tar -xf /opt/element-${ELEMENTWEB_VERSION}.tar.gz -C /opt && \
ln -s /opt/element-${ELEMENTWEB_VERSION} /opt/element-web && \
rm /opt/element-${ELEMENTWEB_VERSION}.tar.gz
COPY rootfs/ /
STOPSIGNAL SIGTERM
RUN id default || (groupadd -g 1001 default && useradd -d /opt/app-root/ -u 1001 -g 1001 default)
RUN PATHS=(/opt/app-root/src /opt/element-web /etc/nginx /var/lib/nginx) && \
mkdir -p ${PATHS[@]} && \
chmod -R 777 ${PATHS[@]} && \
chown -R 1001:0 ${PATHS[@]} && \
chmod -R g=u ${PATHS[@]}
USER 1001
CMD ["/init.sh"]
EXPOSE 8880/tcp

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 4:21 AM (5 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18821047
Default Alt Text
Dockerfile (1 KB)

Event Timeline