mirror of
https://github.com/penpot/penpot.git
synced 2026-08-30 00:29:17 +00:00
67 lines
1.8 KiB
Docker
67 lines
1.8 KiB
Docker
# syntax=docker/dockerfile:1
|
|
FROM dhi.io/node:24.18.0-debian13-dev
|
|
LABEL maintainer="Penpot <docker@penpot.app>"
|
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
LC_ALL=en_US.UTF-8 \
|
|
DEBIAN_FRONTEND=noninteractive
|
|
|
|
# passwd provides useradd, not preinstalled on the DHI base image.
|
|
RUN set -ex; \
|
|
apt-get -qq update; \
|
|
apt-get -qqy --no-install-recommends install passwd; \
|
|
useradd -U -M -u 1001 -s /bin/false -d /opt/penpot penpot; \
|
|
apt-get -qq dist-upgrade; \
|
|
apt-get -qqy --no-install-recommends install \
|
|
curl \
|
|
tzdata \
|
|
locales \
|
|
ca-certificates \
|
|
; \
|
|
apt-get clean; \
|
|
rm -rf /var/lib/apt/lists/*; \
|
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
|
|
locale-gen; \
|
|
find /usr/share/i18n/locales/ -type f ! -name "en_US" ! -name "POSIX" ! -name "C" -delete;
|
|
|
|
RUN set -ex; \
|
|
apt-get -qq update; \
|
|
apt-get -qqy --no-install-recommends install \
|
|
fontforge \
|
|
woff-tools \
|
|
woff2 \
|
|
\
|
|
libgomp1 \
|
|
libheif1 \
|
|
libjpeg62-turbo \
|
|
liblcms2-2 \
|
|
libopenexr-3-1-30 \
|
|
libopenjp2-7 \
|
|
libpng16-16 \
|
|
librsvg2-2 \
|
|
libtiff6 \
|
|
libwebp7 \
|
|
libwebpdemux2 \
|
|
libwebpmux3 \
|
|
libxml2 \
|
|
libzip5 \
|
|
libzstd1 \
|
|
; \
|
|
apt-get clean; \
|
|
rm -rf /var/lib/apt/lists/*; \
|
|
mkdir -p /opt/penpot; \
|
|
chown -R penpot:penpot /opt/penpot;
|
|
|
|
ARG BUNDLE_PATH="./bundle-media-processor/"
|
|
COPY --chown=penpot:penpot $BUNDLE_PATH /opt/penpot/media-processor/
|
|
|
|
WORKDIR /opt/penpot/media-processor
|
|
|
|
# Runs as root: this base image installs Node system-wide (symlinked into
|
|
# /usr/bin), so ./setup's internal `corepack enable` needs write access there.
|
|
RUN ./setup && chown -R penpot:penpot /opt/penpot/media-processor
|
|
|
|
USER penpot:penpot
|
|
|
|
CMD ["node", "dist/index.js"]
|