forked from mendix/docker-mendix-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.rootfs.ubi8
More file actions
26 lines (21 loc) · 937 Bytes
/
Dockerfile.rootfs.ubi8
File metadata and controls
26 lines (21 loc) · 937 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
# Dockerfile to create a Mendix Docker image based on either the source code or
# Mendix Deployment Archive (aka mda file)
FROM registry.access.redhat.com/ubi8/ubi:latest
#This version does a full build originating from the Ubuntu Docker images
LABEL Author="Mendix Digital Ecosystems"
LABEL maintainer="digitalecosystems@mendix.com"
# Set the locale
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# install dependencies & remove package lists
# doesn't include libpq5 python3-distutils libgdiplus
RUN dnf update -y && \
dnf module enable nginx:1.18 -y && \
dnf install -y wget curl glibc-langpack-en python3 openssl tar gzip unzip nginx nginx-mod-stream binutils fontconfig && \
dnf clean all && rm -rf /var/cache/yum
# Set nginx permissions
RUN touch /run/nginx.pid && \
chown -R 1001:0 /run/nginx.pid &&\
chmod -R g=u /run/nginx.pid
# Set python alias to python3 (required for Datadog)
RUN ln -s python3 /usr/bin/python