moved page rendering to a different service and access is now behind
admin.DOMAIN www.DOMAIN db.DOMAIN
This commit is contained in:
parent
c7f6b30b87
commit
1027da989e
126 changed files with 6356 additions and 1516 deletions
25
app-public/Dockerfile
Normal file
25
app-public/Dockerfile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# syntax=docker/dockerfile:1.7
|
||||
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
ENV NPM_CONFIG_AUDIT=false \
|
||||
NPM_CONFIG_FUND=false \
|
||||
NPM_CONFIG_PROGRESS=false
|
||||
COPY app-public/package*.json ./
|
||||
COPY packages/shared/package.json ./packages/shared/package.json
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci --ignore-scripts --no-audit --no-fund
|
||||
COPY app-public/ ./
|
||||
COPY packages/shared/ ./packages/shared/
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production \
|
||||
NPM_CONFIG_AUDIT=false \
|
||||
NPM_CONFIG_FUND=false \
|
||||
NPM_CONFIG_PROGRESS=false
|
||||
COPY --from=build /app/build ./build
|
||||
COPY --from=build /app/package*.json ./
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci --omit=dev --ignore-scripts --no-audit --no-fund
|
||||
EXPOSE 3000
|
||||
CMD ["node", "build"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue