wip: the stack for portal 1.0

This commit is contained in:
bl committed 2026-11-24 12:30:21 +01:00
1 parent d1106dc1b8
commit c0114ae323
6 files changed
+187 -137

No files matched your search

+4 -2
View File
@@ -22,9 +22,11 @@ WORKDIR /app
RUN curl -sfL "https://project.uhhm.no/uhhm/portal/releases/download/${PORTAL_RELEASE}/portal-${PORTAL_RELEASE}.tar.gz" \
| tar -xz -C /app \
&& test -x /app/portal
# A non-root user; the image ships nothing writable it needs.
# A non-root user. What it writes is in two volumes: the search cache,
# and /data, where the site's store is (PORTAL_STORE in compose.yml); a
# new volume takes this directory's owner.
RUN useradd --system --no-create-home portal
RUN mkdir -p /app/learn-cache && chown portal /app/learn-cache
RUN mkdir -p /app/learn-cache /data && chown portal /app/learn-cache /data
USER portal
EXPOSE 3000
CMD ["/app/portal"]