mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
16 lines
533 B
Text
16 lines
533 B
Text
FROM nginx:1.23
|
|
LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
|
|
|
|
RUN set -ex; \
|
|
useradd -U -M -u 1001 -s /bin/false -d /opt/penpot penpot; \
|
|
mkdir -p /opt/data/assets; \
|
|
chown -R penpot:penpot /opt/data;
|
|
|
|
ADD ./bundle-frontend/ /var/www/app/
|
|
ADD ./files/config.js /var/www/app/js/config.js
|
|
ADD ./files/nginx.conf /etc/nginx/nginx.conf.template
|
|
ADD ./files/nginx-mime.types /etc/nginx/mime.types
|
|
ADD ./files/nginx-entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
|
CMD ["nginx", "-g", "daemon off;"]
|