mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Rebase from Alpine back to ubuntu
This makes me really sad but is necessary for bedrock support. Bedrock is compiled for a different libc than alpine has. #sadifus
This commit is contained in:
parent
76b243d695
commit
d8a875f5d0
20
Dockerfile
20
Dockerfile
@ -1,23 +1,17 @@
|
|||||||
FROM python:alpine
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
LABEL maintainer="Dockerfile created by Zedifus <https://gitlab.com/zedifus>"
|
LABEL maintainer="Dockerfile created by Zedifus <https://gitlab.com/zedifus>"
|
||||||
|
|
||||||
# Security Patch for CVE-2021-44228
|
# Security Patch for CVE-2021-44228
|
||||||
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
|
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
|
||||||
|
|
||||||
# Install Packages, Build Dependencies & Garbage Collect & Harden
|
# Install Packages And Dependencies
|
||||||
# (Alpine Edge repo is needed because jre16 is new)
|
|
||||||
COPY requirements.txt /commander/requirements.txt
|
COPY requirements.txt /commander/requirements.txt
|
||||||
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/latest-stable/community \
|
RUN apt update \
|
||||||
gcc musl-dev libffi-dev make rust cargo openssl-dev llvm11-libs \
|
&& apt install -y gcc python3 python3-pip libmariadb-dev openjdk-8-jre-headless openjdk-11-jre-headless openjdk-16-jre-headless openjdk-17-jre-headless default-jre \
|
||||||
openjdk8-jre-base openjdk11-jre-headless openjdk16-jre-headless openjdk17-jre-headless mariadb-dev \
|
&& pip3 install --no-cache-dir -r /commander/requirements.txt
|
||||||
&& pip3 install --no-cache-dir -r /commander/requirements.txt \
|
|
||||||
&& apk del --no-cache gcc musl-dev libffi-dev make rust cargo openssl-dev llvm11-libs \
|
|
||||||
&& rm -rf /sbin/apk \
|
|
||||||
&& rm -rf /etc/apk \
|
|
||||||
&& rm -rf /lib/apk \
|
|
||||||
&& rm -rf /usr/share/apk \
|
|
||||||
&& rm -rf /var/lib/apk
|
|
||||||
|
|
||||||
# Copy Source & copy default config from image
|
# Copy Source & copy default config from image
|
||||||
COPY ./ /commander
|
COPY ./ /commander
|
||||||
|
Loading…
Reference in New Issue
Block a user