2024-09-18 19:21:40 +02:00
|
|
|
FROM nginxinc/nginx-unprivileged:1.27.1
|
2020-09-09 15:49:06 +02:00
|
|
|
LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
|
|
|
|
|
2024-09-18 19:21:40 +02:00
|
|
|
USER root
|
|
|
|
|
2023-02-10 13:37:33 +01:00
|
|
|
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;
|
|
|
|
|
2021-06-07 09:44:12 +02:00
|
|
|
ADD ./bundle-frontend/ /var/www/app/
|
2021-02-09 12:12:25 +01:00
|
|
|
ADD ./files/config.js /var/www/app/js/config.js
|
2023-03-06 10:49:26 +01:00
|
|
|
ADD ./files/nginx.conf /etc/nginx/nginx.conf.template
|
2024-04-18 16:38:24 +02:00
|
|
|
ADD ./files/nginx-mime.types /etc/nginx/mime.types
|
2020-09-09 15:49:06 +02:00
|
|
|
ADD ./files/nginx-entrypoint.sh /entrypoint.sh
|
|
|
|
|
2024-09-18 19:21:40 +02:00
|
|
|
RUN chown -R 1001:0 /var/cache/nginx; \
|
|
|
|
chmod -R g+w /var/cache/nginx; \
|
|
|
|
chown -R 1001:0 /etc/nginx; \
|
|
|
|
chmod -R g+w /etc/nginx; \
|
|
|
|
chown -R 1001:0 /var/www; \
|
|
|
|
chmod -R g+w /var/www;
|
|
|
|
|
|
|
|
USER penpot:penpot
|
2020-09-09 15:49:06 +02:00
|
|
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|