forked from mendix/docker-mendix-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.rootfs.ubi8
26 lines (21 loc) · 1.01 KB
/
Dockerfile.rootfs.ubi8
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-minimal:latest
#This version does a full build originating from the Ubuntu Docker images
LABEL Author="Mendix Digital Ecosystems"
LABEL maintainer="[email protected]"
# 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 microdnf update -y && \
microdnf module enable nginx:1.18 -y && \
microdnf install -y wget curl glibc-langpack-en python3 openssl tar gzip unzip nginx nginx-mod-stream binutils fontconfig && \
microdnf clean all && rm -rf /var/cache/yum
# Set nginx permissions
RUN touch /run/nginx.pid && \
chown -R 1001:0 /var/log/nginx /var/lib/nginx /run/nginx.pid &&\
chmod -R g=u /var/log/nginx /var/lib/nginx /run/nginx.pid
# Set python alias to python3 (required for Datadog)
RUN alternatives --set python /usr/bin/python3