2021-01-26 06:57:21 -05:00
|
|
|
FROM ubuntu:20.04
|
2020-12-02 03:39:39 -05:00
|
|
|
LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
|
|
|
|
|
|
|
|
ENV LANG='en_US.UTF-8' LC_ALL='en_US.UTF-8'
|
|
|
|
|
2021-03-17 16:11:09 -05:00
|
|
|
WORKDIR /root
|
|
|
|
|
2020-12-02 03:39:39 -05:00
|
|
|
RUN set -ex; \
|
|
|
|
apt-get -qq update; \
|
2021-06-16 09:14:44 -05:00
|
|
|
apt-get -qqy --no-install-recommends install \
|
|
|
|
curl \
|
|
|
|
tzdata \
|
|
|
|
locales \
|
|
|
|
ca-certificates \
|
|
|
|
imagemagick \
|
|
|
|
webp \
|
|
|
|
fontconfig \
|
|
|
|
woff-tools \
|
|
|
|
woff2 \
|
|
|
|
fontforge \
|
|
|
|
; \
|
2020-12-02 03:39:39 -05:00
|
|
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
|
|
|
|
locale-gen; \
|
|
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
|
2021-03-17 16:11:09 -05:00
|
|
|
RUN set -eux; \
|
|
|
|
ARCH="$(dpkg --print-architecture)"; \
|
|
|
|
case "${ARCH}" in \
|
|
|
|
aarch64|arm64) \
|
|
|
|
ESUM='7217a9f9be3b0c8dfc78538f95fd2deb493eb651152d975062920566492b2574'; \
|
|
|
|
BINARY_URL='https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_aarch64_linux_hotspot_16_36.tar.gz'; \
|
|
|
|
;; \
|
|
|
|
armhf|armv7l) \
|
|
|
|
ESUM='f1d32ba01a40c98889f31368c0e987d6bbda65a7c50b8c088623b48e3a90104a'; \
|
|
|
|
BINARY_URL='https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_arm_linux_hotspot_16_36.tar.gz'; \
|
|
|
|
;; \
|
|
|
|
amd64|x86_64) \
|
|
|
|
ESUM='2e031cf37018161c9e59b45fa4b98ff2ce4ce9297b824c512989d579a70f8422'; \
|
|
|
|
BINARY_URL='https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_x64_linux_hotspot_16_36.tar.gz'; \
|
|
|
|
;; \
|
|
|
|
*) \
|
|
|
|
echo "Unsupported arch: ${ARCH}"; \
|
|
|
|
exit 1; \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \
|
|
|
|
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \
|
2022-04-26 06:28:05 -05:00
|
|
|
mkdir -p /usr/lib/jvm/openjdk; \
|
|
|
|
cd /usr/lib/jvm/openjdk; \
|
2021-03-17 16:11:09 -05:00
|
|
|
tar -xf /tmp/openjdk.tar.gz --strip-components=1; \
|
|
|
|
rm -rf /tmp/openjdk.tar.gz;
|
|
|
|
|
2022-04-26 06:28:05 -05:00
|
|
|
ENV JAVA_HOME=/usr/lib/jvm/openjdk PATH="/usr/lib/jvm/openjdk/bin:$PATH"
|
2021-06-07 02:44:12 -05:00
|
|
|
ADD ./bundle-backend/ /opt/penpot/backend/
|
|
|
|
WORKDIR /opt/penpot/backend
|
2020-12-02 03:39:39 -05:00
|
|
|
CMD ["/bin/bash", "run.sh"]
|