-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
33 lines (29 loc) · 945 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:22.11.0-alpine
RUN apk add --no-cache ca-certificates \
&& apk upgrade --no-cache \
&& addgroup -S app \
&& adduser -S app -G app -u 31337 -h /app/ \
&& chown -R app:app /app/
USER app
WORKDIR /app
ENV NODE_ENV production
ENV MODE server
COPY package.json /app/
COPY dist/ /app/dist/
USER 31337
ENV LISTEN_HOST="::" \
LISTEN_PORT="8080" \
SSR_ONLY="false" \
SESSIONS_SECRET="changeme" \
AUTH_METHOD="none" \
OIDC_ISSUER="https://sso-dev.notprod.homeoffice.gov.uk/auth/realms/prototype/" \
OIDC_CLIENT_ID="local-dev" \
OIDC_CLIENT_SECRET="" \
OIDC_REDIRECT_URI="http://localhost:8080" \
AUTH_HEADER_USERNAME="x-auth-username" \
AUTH_HEADER_GROUPS="x-auth-groups" \
AUTH_HEADER_ROLES="x-auth-roles" \
FRAME_ANCESTORS="'self',*.hugr.dev,*.hugr.app"
EXPOSE ${LISTEN_PORT:-8080}
HEALTHCHECK CMD wget -q -O /dev/null http://localhost/healthz:${LISTEN_PORT} || exit 1
CMD ["node", "."]